Skip to content

Commit

Permalink
Fix to be ready that shard is missing when we retrieve state_changes
Browse files Browse the repository at this point in the history
  • Loading branch information
khorolets committed Feb 9, 2022
1 parent 10d1ad9 commit 8670763
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions chain/indexer/src/streamer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ async fn build_streamer_message(
shard_id,
chunk: None,
receipt_execution_outcomes: vec![],
state_changes: state_changes
.remove(&shard_id)
.expect("StateChanges for given shard should be present"),
state_changes: state_changes.remove(&shard_id).unwrap_or_default(),
})
.collect::<Vec<_>>();

Expand Down

0 comments on commit 8670763

Please sign in to comment.