mirror of
				https://github.com/0glabs/0g-storage-node.git
				synced 2025-11-04 08:37:27 +00:00 
			
		
		
		
	remove unnecessary backtrace (#280)
This commit is contained in:
		
							parent
							
								
									b9e6431a4d
								
							
						
					
					
						commit
						d0aad154da
					
				@ -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");
 | 
			
		||||
                }
 | 
			
		||||
            },
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user