Actually fixes non-binding `let` on a future (quic-client) (#29326)
This commit is contained in:
parent
4530d161b7
commit
76bfd1a9a1
|
@ -29,7 +29,7 @@ impl TpuConnection for QuicTpuConnection {
|
||||||
let _lock = ASYNC_TASK_SEMAPHORE.acquire();
|
let _lock = ASYNC_TASK_SEMAPHORE.acquire();
|
||||||
let inner = self.inner.clone();
|
let inner = self.inner.clone();
|
||||||
|
|
||||||
_ = RUNTIME
|
let _handle = RUNTIME
|
||||||
.spawn(async move { send_wire_transaction_async(inner, wire_transaction).await });
|
.spawn(async move { send_wire_transaction_async(inner, wire_transaction).await });
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,8 @@ impl TpuConnection for QuicTpuConnection {
|
||||||
fn send_wire_transaction_batch_async(&self, buffers: Vec<Vec<u8>>) -> TransportResult<()> {
|
fn send_wire_transaction_batch_async(&self, buffers: Vec<Vec<u8>>) -> TransportResult<()> {
|
||||||
let _lock = ASYNC_TASK_SEMAPHORE.acquire();
|
let _lock = ASYNC_TASK_SEMAPHORE.acquire();
|
||||||
let inner = self.inner.clone();
|
let inner = self.inner.clone();
|
||||||
_ = RUNTIME.spawn(async move { send_wire_transaction_batch_async(inner, buffers).await });
|
let _handle =
|
||||||
|
RUNTIME.spawn(async move { send_wire_transaction_batch_async(inner, buffers).await });
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,7 @@ impl TpuConnection for QuicTpuConnection {
|
||||||
let _lock = ASYNC_TASK_SEMAPHORE.acquire();
|
let _lock = ASYNC_TASK_SEMAPHORE.acquire();
|
||||||
let inner = self.inner.clone();
|
let inner = self.inner.clone();
|
||||||
|
|
||||||
_ = RUNTIME
|
let _handle = RUNTIME
|
||||||
.spawn(async move { send_wire_transaction_async(inner, wire_transaction).await });
|
.spawn(async move { send_wire_transaction_async(inner, wire_transaction).await });
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,8 @@ impl TpuConnection for QuicTpuConnection {
|
||||||
fn send_wire_transaction_batch_async(&self, buffers: Vec<Vec<u8>>) -> TransportResult<()> {
|
fn send_wire_transaction_batch_async(&self, buffers: Vec<Vec<u8>>) -> TransportResult<()> {
|
||||||
let _lock = ASYNC_TASK_SEMAPHORE.acquire();
|
let _lock = ASYNC_TASK_SEMAPHORE.acquire();
|
||||||
let inner = self.inner.clone();
|
let inner = self.inner.clone();
|
||||||
_ = RUNTIME.spawn(async move { send_wire_transaction_batch_async(inner, buffers).await });
|
let _handle =
|
||||||
|
RUNTIME.spawn(async move { send_wire_transaction_batch_async(inner, buffers).await });
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue