spawn recording latency
This commit is contained in:
parent
6038351cb8
commit
b7935f77fc
@ -381,9 +381,10 @@ impl OpenRequestHandle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: benchmark spawning both of these
|
tokio::spawn(async move {
|
||||||
self.rpc.peak_latency.as_ref().unwrap().report(latency);
|
self.rpc.peak_latency.as_ref().unwrap().report(latency);
|
||||||
self.rpc.median_latency.as_ref().unwrap().record(latency);
|
self.rpc.median_latency.as_ref().unwrap().record(latency);
|
||||||
|
});
|
||||||
|
|
||||||
response
|
response
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user