File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -96,11 +96,10 @@ impl HttpRequest for RPCGetAttachmentsInvRequestHandler {
96
96
if key == "index_block_hash" {
97
97
index_block_hash = StacksBlockId :: from_hex ( & value) . ok ( ) ;
98
98
} else if key == "pages_indexes" {
99
- if let Ok ( pages_indexes_value) = value. parse :: < String > ( ) {
100
- for entry in pages_indexes_value. split ( ',' ) {
101
- if let Ok ( page_index) = entry. parse :: < u32 > ( ) {
102
- page_indexes. insert ( page_index) ;
103
- }
99
+ let pages_indexes_value = value. to_string ( ) ;
100
+ for entry in pages_indexes_value. split ( ',' ) {
101
+ if let Ok ( page_index) = entry. parse :: < u32 > ( ) {
102
+ page_indexes. insert ( page_index) ;
104
103
}
105
104
}
106
105
}
Original file line number Diff line number Diff line change @@ -303,13 +303,9 @@ impl RelayerThread {
303
303
304
304
/// have we waited for the right conditions under which to start mining a block off of our
305
305
/// chain tip?
306
- #[ allow( clippy:: nonminimal_bool) ]
307
- #[ allow( clippy:: eq_op) ]
308
306
fn has_waited_for_latest_blocks ( & self ) -> bool {
309
307
// a network download pass took place
310
- ( self . min_network_download_passes <= self . last_network_download_passes
311
- // a network inv pass took place
312
- && self . min_network_download_passes <= self . last_network_download_passes )
308
+ self . min_network_download_passes <= self . last_network_download_passes
313
309
// we waited long enough for a download pass, but timed out waiting
314
310
|| self . last_network_block_height_ts + ( self . config . node . wait_time_for_blocks as u128 ) < get_epoch_time_ms ( )
315
311
// we're not supposed to wait at all
Original file line number Diff line number Diff line change @@ -2936,13 +2936,9 @@ impl RelayerThread {
2936
2936
2937
2937
/// have we waited for the right conditions under which to start mining a block off of our
2938
2938
/// chain tip?
2939
- #[ allow( clippy:: nonminimal_bool) ]
2940
- #[ allow( clippy:: eq_op) ]
2941
2939
pub fn has_waited_for_latest_blocks ( & self ) -> bool {
2942
2940
// a network download pass took place
2943
- ( self . min_network_download_passes <= self . last_network_download_passes
2944
- // a network inv pass took place
2945
- && self . min_network_download_passes <= self . last_network_download_passes )
2941
+ self . min_network_download_passes <= self . last_network_download_passes
2946
2942
// we waited long enough for a download pass, but timed out waiting
2947
2943
|| self . last_network_block_height_ts + ( self . config . node . wait_time_for_blocks as u128 ) < get_epoch_time_ms ( )
2948
2944
// we're not supposed to wait at all
You can’t perform that action at this time.
0 commit comments