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