From 972103d7974ee0a10e876bc5d08580558a035ec3 Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 16 Feb 2021 17:24:02 +1000 Subject: [PATCH] Fix tracing macro syntax --- zebrad/src/components/sync.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zebrad/src/components/sync.rs b/zebrad/src/components/sync.rs index ae71ccb9c..0392cef67 100644 --- a/zebrad/src/components/sync.rs +++ b/zebrad/src/components/sync.rs @@ -351,7 +351,7 @@ where }) .map_err(|e| eyre!(e))?; - tracing::info!(?tip = block_locator.first().unwrap(), "trying to obtain new chain tips"); + tracing::info!(tip = ?block_locator.first().unwrap(), "trying to obtain new chain tips"); tracing::debug!(?block_locator, "got block locator"); let mut requests = FuturesUnordered::new(); @@ -466,7 +466,7 @@ where let tips = std::mem::take(&mut self.prospective_tips); let mut download_set = HashSet::new(); - tracing::info!(?tips = tips.len(), "trying to extend chain tips"); + tracing::info!(tips = ?tips.len(), "trying to extend chain tips"); for tip in tips { tracing::debug!(?tip, "asking peers to extend chain tip"); let mut responses = FuturesUnordered::new();