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:
Lijun Wang
2022-03-17 13:31:11 -07:00
committed by GitHub
parent 6b0d34d70d
commit 8b230b86cc
4 changed files with 15 additions and 15 deletions

View File

@@ -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>(