File tree 3 files changed +1
-19
lines changed
components/ordhook-core/src/core/pipeline/processors
3 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,6 @@ pub fn start_block_archiving_processor(
36
36
let mut empty_cycles = 0 ;
37
37
let mut processed_blocks = 0 ;
38
38
39
- if let Ok ( PostProcessorCommand :: Start ) = commands_rx. recv ( ) {
40
- let _ = events_tx. send ( PostProcessorEvent :: Started ) ;
41
- debug ! ( ctx. expect_logger( ) , "Start block indexing runloop" ) ;
42
- }
43
-
44
39
loop {
45
40
debug ! ( ctx. expect_logger( ) , "Tick" ) ;
46
41
let ( compacted_blocks, _) = match commands_rx. try_recv ( ) {
@@ -52,7 +47,6 @@ pub fn start_block_archiving_processor(
52
47
let _ = events_tx. send ( PostProcessorEvent :: Terminated ) ;
53
48
break ;
54
49
}
55
- Ok ( PostProcessorCommand :: Start ) => unreachable ! ( ) ,
56
50
Err ( e) => match e {
57
51
TryRecvError :: Empty => {
58
52
empty_cycles += 1 ;
Original file line number Diff line number Diff line change @@ -72,11 +72,6 @@ pub fn start_inscription_indexing_processor(
72
72
open_readonly_ordhook_db_conn ( & config. expected_cache_path ( ) , & ctx) . unwrap ( ) ;
73
73
let mut sequence_cursor = SequenceCursor :: new ( & inscriptions_db_conn) ;
74
74
75
- if let Ok ( PostProcessorCommand :: Start ) = commands_rx. recv ( ) {
76
- let _ = events_tx. send ( PostProcessorEvent :: Started ) ;
77
- debug ! ( ctx. expect_logger( ) , "Start inscription indexing runloop" ) ;
78
- }
79
-
80
75
loop {
81
76
let ( compacted_blocks, mut blocks) = match commands_rx. try_recv ( ) {
82
77
Ok ( PostProcessorCommand :: ProcessBlocks ( compacted_blocks, blocks) ) => {
@@ -88,11 +83,10 @@ pub fn start_inscription_indexing_processor(
88
83
let _ = events_tx. send ( PostProcessorEvent :: Terminated ) ;
89
84
break ;
90
85
}
91
- Ok ( PostProcessorCommand :: Start ) => unreachable ! ( ) ,
92
86
Err ( e) => match e {
93
87
TryRecvError :: Empty => {
94
88
empty_cycles += 1 ;
95
- if empty_cycles == 10 {
89
+ if empty_cycles == 180 {
96
90
warn ! ( ctx. expect_logger( ) , "Block processor reached expiration" ) ;
97
91
let _ = events_tx. send ( PostProcessorEvent :: Expired ) ;
98
92
break ;
Original file line number Diff line number Diff line change @@ -37,11 +37,6 @@ pub fn start_transfers_recomputing_processor(
37
37
open_readwrite_ordhook_db_conn ( & config. expected_cache_path ( ) , & ctx) . unwrap ( ) ;
38
38
let mut empty_cycles = 0 ;
39
39
40
- if let Ok ( PostProcessorCommand :: Start ) = commands_rx. recv ( ) {
41
- let _ = events_tx. send ( PostProcessorEvent :: Started ) ;
42
- debug ! ( ctx. expect_logger( ) , "Start inscription indexing runloop" ) ;
43
- }
44
-
45
40
loop {
46
41
let mut blocks = match commands_rx. try_recv ( ) {
47
42
Ok ( PostProcessorCommand :: ProcessBlocks ( _, blocks) ) => {
@@ -53,7 +48,6 @@ pub fn start_transfers_recomputing_processor(
53
48
let _ = events_tx. send ( PostProcessorEvent :: Terminated ) ;
54
49
break ;
55
50
}
56
- Ok ( PostProcessorCommand :: Start ) => unreachable ! ( ) ,
57
51
Err ( e) => match e {
58
52
TryRecvError :: Empty => {
59
53
empty_cycles += 1 ;
You can’t perform that action at this time.
0 commit comments