File tree Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,6 @@ pub trait Callback {
22
22
23
23
/// Gets called if the parser has finished and all blocks are handled
24
24
fn on_complete ( & mut self , block_height : u64 ) -> anyhow:: Result < ( ) > ;
25
-
26
- /// Can be used to toggle whether the progress should be shown for specific callbacks or not
27
- fn show_progress ( & self ) -> bool {
28
- true
29
- }
30
25
}
31
26
32
27
pub struct UnspentValue {
Original file line number Diff line number Diff line change @@ -54,8 +54,4 @@ impl Callback for OpReturn {
54
54
fn on_complete ( & mut self , _: u64 ) -> anyhow:: Result < ( ) > {
55
55
Ok ( ( ) )
56
56
}
57
-
58
- fn show_progress ( & self ) -> bool {
59
- false
60
- }
61
57
}
Original file line number Diff line number Diff line change @@ -83,9 +83,7 @@ impl BlockchainParser {
83
83
fn on_block ( & mut self , block : & bitcoin:: Block , height : u64 ) -> anyhow:: Result < ( ) > {
84
84
self . callback . on_block ( block, height) ?;
85
85
tracing:: trace!( target: "parser" , "on_block(height={}) called" , height) ;
86
- if self . callback . show_progress ( ) {
87
- self . print_progress ( height) ;
88
- }
86
+ self . print_progress ( height) ;
89
87
Ok ( ( ) )
90
88
}
91
89
You can’t perform that action at this time.
0 commit comments