table: remove redundant tracing in insert_many
This commit is contained in:
parent
f8df90b79b
commit
e4f493b481
1 changed files with 2 additions and 5 deletions
|
@ -239,9 +239,7 @@ impl<F: TableSchema, R: TableReplication> Table<F, R> {
|
||||||
// Build futures to actually perform each of the corresponding RPC calls
|
// Build futures to actually perform each of the corresponding RPC calls
|
||||||
let call_futures = call_list.into_iter().map(|(node, entries)| {
|
let call_futures = call_list.into_iter().map(|(node, entries)| {
|
||||||
let this = self.clone();
|
let this = self.clone();
|
||||||
let tracer = opentelemetry::global::tracer("garage");
|
async move {
|
||||||
let span = tracer.start(format!("RPC to {:?}", node));
|
|
||||||
let fut = async move {
|
|
||||||
let rpc = TableRpc::<F>::Update(entries);
|
let rpc = TableRpc::<F>::Update(entries);
|
||||||
let resp = this
|
let resp = this
|
||||||
.system
|
.system
|
||||||
|
@ -254,8 +252,7 @@ impl<F: TableSchema, R: TableReplication> Table<F, R> {
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
(node, resp)
|
(node, resp)
|
||||||
};
|
}
|
||||||
fut.with_context(Context::current_with_span(span))
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Run all requests in parallel thanks to FuturesUnordered, and collect results.
|
// Run all requests in parallel thanks to FuturesUnordered, and collect results.
|
||||||
|
|
Loading…
Reference in a new issue