From d0aad154dabd953f1c313c3287f61e60725019de Mon Sep 17 00:00:00 2001 From: 0g-peterzhb <158457852+0g-peterzhb@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:23:56 +0800 Subject: [PATCH] remove unnecessary backtrace (#280) --- node/storage-async/src/lib.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/node/storage-async/src/lib.rs b/node/storage-async/src/lib.rs index 27f78c92..b564f426 100644 --- a/node/storage-async/src/lib.rs +++ b/node/storage-async/src/lib.rs @@ -2,7 +2,6 @@ extern crate tracing; use anyhow::bail; -use backtrace::Backtrace; use shared_types::{ Chunk, ChunkArray, ChunkArrayWithProof, DataRoot, FlowProof, FlowRangeProof, Transaction, }; @@ -140,9 +139,6 @@ impl Store { { let store = self.store.clone(); let (tx, rx) = oneshot::channel(); - let mut backtrace = Backtrace::new(); - let frames = backtrace.frames().to_vec(); - backtrace = frames.into(); self.executor.spawn_blocking( move || { @@ -150,7 +146,6 @@ impl Store { let res = f(&*store); if tx.send(res).is_err() { - warn!("Backtrace: {:?}", backtrace); error!("Unable to complete async storage operation: the receiver dropped"); } },