From 4d22d80281a12bfe6644079122fe4241e3369401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 23 Sep 2020 14:13:51 +0200 Subject: [PATCH] Display only the key on heed error --- src/bin/indexer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/indexer.rs b/src/bin/indexer.rs index 727547a21..73494be64 100644 --- a/src/bin/indexer.rs +++ b/src/bin/indexer.rs @@ -517,7 +517,7 @@ where F: FnMut(&[u8], &[u8]) -> anyhow::Result<()> let mut iter = merger.into_merge_iter()?; while let Some(result) = iter.next() { let (k, v) = result?; - (f)(&k, &v).with_context(|| format!("writing {:?} {:?} into LMDB", k.as_bstr(), k.as_bstr()))?; + (f)(&k, &v).with_context(|| format!("writing {:?} into LMDB", k.as_bstr()))?; } debug!("MTBL stores merged in {:.02?}!", before.elapsed());