We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55c2050 commit 79ba40bCopy full SHA for 79ba40b
lightning-block-sync/src/init.rs
@@ -186,7 +186,8 @@ where
186
}
187
let results = MultiResultFuturePoller::new(fetch_block_futures).await.into_iter();
188
189
- let mut fetched_blocks = [const { None }; MAX_BLOCKS_AT_ONCE];
+ const NO_BLOCK: Option<(u32, crate::poll::ValidatedBlock)> = None;
190
+ let mut fetched_blocks = [NO_BLOCK; MAX_BLOCKS_AT_ONCE];
191
for ((header, block_res), result) in results.into_iter().zip(fetched_blocks.iter_mut()) {
192
*result = Some((header.height, block_res?));
193
0 commit comments