Use borrow instead of move in interfaces defined by TpuConnection (#23734)
* Use borrow instead of move in interfaces defined by TpuConnection to avoid data copy * Removed a few more unnecessary whole array slicing.
This commit is contained in:
@@ -606,7 +606,7 @@ impl<C: 'static + TpuConnection> AsyncClient for ThinClient<C> {
|
||||
}
|
||||
|
||||
fn async_send_batch(&self, transactions: Vec<Transaction>) -> TransportResult<()> {
|
||||
self.tpu_connection().send_batch(transactions)
|
||||
self.tpu_connection().send_batch(&transactions)
|
||||
}
|
||||
|
||||
fn async_send_message<T: Signers>(
|
||||
|
Reference in New Issue
Block a user