Skip to content

Commit 943f821

Browse files
incrypto32Zoran Cvetkov
authored andcommitted
graph: Avoid unwraps in blocks_with_subgraph_triggers
1 parent 0d2cd4d commit 943f821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graph/src/blockchain/block_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ impl<C: Blockchain> TriggersAdapterWrapper<C> {
341341
let store = self
342342
.source_subgraph_stores
343343
.get(&subgraph_filter.subgraph)
344-
.unwrap(); // TODO(krishna): Avoid unwrap
344+
.ok_or_else(|| anyhow!("Store not found for subgraph: {}", subgraph_filter.subgraph))?;
345345

346346
let schema = <dyn crate::components::store::SourceableStore>::input_schema(store);
347347

0 commit comments

Comments
 (0)