File tree 1 file changed +3
-3
lines changed
components/chainhook-event-observer/src/hord/db
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -563,11 +563,11 @@ pub async fn fetch_and_cache_blocks_in_hord_db(
563
563
) -> Result < ( ) , String > {
564
564
let number_of_blocks_to_process = end_block - start_block + 1 ;
565
565
let retrieve_block_hash_pool = ThreadPool :: new ( network_thread) ;
566
- let ( block_hash_tx, block_hash_rx) = crossbeam_channel:: unbounded ( ) ;
566
+ let ( block_hash_tx, block_hash_rx) = crossbeam_channel:: bounded ( 128 ) ;
567
567
let retrieve_block_data_pool = ThreadPool :: new ( network_thread) ;
568
- let ( block_data_tx, block_data_rx) = crossbeam_channel:: unbounded ( ) ;
568
+ let ( block_data_tx, block_data_rx) = crossbeam_channel:: bounded ( 64 ) ;
569
569
let compress_block_data_pool = ThreadPool :: new ( 8 ) ;
570
- let ( block_compressed_tx, block_compressed_rx) = crossbeam_channel:: unbounded ( ) ;
570
+ let ( block_compressed_tx, block_compressed_rx) = crossbeam_channel:: bounded ( 32 ) ;
571
571
let first_inscription_block_height = 767430 ;
572
572
573
573
for block_cursor in start_block..=end_block {
You can’t perform that action at this time.
0 commit comments