File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ impl Indexer<ReqwestTransport> {
111
111
} ,
112
112
} ;
113
113
114
- let last_synced_block = sync_state. and_then ( |state| {
114
+ let last_synced_block = sync_state. as_ref ( ) . and_then ( |state| {
115
115
match (
116
116
state. last_upper_synced_block_root ,
117
117
state. last_upper_synced_slot ,
@@ -125,14 +125,10 @@ impl Indexer<ReqwestTransport> {
125
125
}
126
126
} ) ;
127
127
128
- let upper_indexed_block_id = match & last_synced_block {
129
- Some ( block) => block. slot . into ( ) ,
130
- None => BlockId :: Head ,
131
- } ;
132
-
133
128
info ! (
134
- lower_indexed_block_id = current_lower_block_id. to_string( ) ,
135
- upper_indexed_block_id = upper_indexed_block_id. to_string( ) ,
129
+ last_lowest_synced_slot = ?current_lower_block_id,
130
+ last_upper_synced_block_slot = ?last_synced_block. as_ref( ) . map( |block| block. slot) ,
131
+ last_upper_synced_block_root = ?last_synced_block. as_ref( ) . map( |block| block. root) ,
136
132
"Starting indexer…" ,
137
133
) ;
138
134
You can’t perform that action at this time.
0 commit comments