Add context to broker pull.

This commit is contained in:
Arseny Sher
2024-05-21 17:13:41 +03:00
parent 6e17c359bd
commit 9519f06d48
+1
View File
@@ -86,6 +86,7 @@ async fn push_loop(conf: SafeKeeperConf) -> anyhow::Result<()> {
}
/// Subscribe and fetch all the interesting data from the broker.
#[instrument(name = "broker pull", skip_all)]
async fn pull_loop(conf: SafeKeeperConf, stats: Arc<BrokerStats>) -> Result<()> {
let mut client = storage_broker::connect(conf.broker_endpoint, conf.broker_keepalive_interval)?;