File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
storage/src/store/shard_state Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ impl StoreContext {
510
510
} ;
511
511
512
512
Ok ( match self . transaction . entry ( * key) {
513
- Entry :: Occupied ( mut value) => {
513
+ Entry :: Occupied ( value) => {
514
514
value. get ( ) . rc . fetch_add ( 1 , Ordering :: Relaxed ) ;
515
515
false
516
516
}
Original file line number Diff line number Diff line change @@ -137,13 +137,13 @@ impl ShardStateStorage {
137
137
138
138
let ctx = cell_storage. create_store_ctx ( estimated_update_size_bytes) ;
139
139
140
- rayon :: scope ( |s| {
141
- s. spawn ( |_ | {
140
+ std :: thread :: scope ( |s| {
141
+ s. spawn ( || {
142
142
CellStorage :: store_cell ( root_cell. as_ref ( ) , & ctx) . unwrap ( ) ;
143
143
} ) ;
144
144
145
145
for ( _, data_root_cell) in root_data_cells. iter ( ) {
146
- s. spawn ( |_ | {
146
+ s. spawn ( || {
147
147
CellStorage :: store_cell ( data_root_cell. as_ref ( ) , & ctx) . unwrap ( ) ;
148
148
} ) ;
149
149
}
@@ -413,9 +413,9 @@ impl ShardStateStorage {
413
413
tracing:: info!( len = data_roots. len( ) , block_id = ?cur_block_id, "data_roots" ) ;
414
414
415
415
let ctx = cell_storage. create_remove_ctx ( ) ;
416
- rayon :: scope ( |s| {
416
+ std :: thread :: scope ( |s| {
417
417
for data_root in data_roots. iter ( ) {
418
- s. spawn ( |_ | {
418
+ s. spawn ( || {
419
419
ctx. remove_cell ( data_root) . unwrap ( ) ;
420
420
} ) ;
421
421
}
You can’t perform that action at this time.
0 commit comments