Skip to content

Commit

Permalink
graph: Avoid unwraps in blocks_with_subgraph_triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
incrypto32 committed Dec 6, 2024
1 parent f1f8c31 commit 24487d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph/src/blockchain/block_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ impl<C: Blockchain> TriggersAdapterWrapper<C> {
let store = self
.source_subgraph_stores
.get(&subgraph_filter.subgraph)
.unwrap(); // TODO(krishna): Avoid unwrap
.ok_or_else(|| anyhow!("Store not found for subgraph: {}", subgraph_filter.subgraph))?;

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

Expand Down

0 comments on commit 24487d8

Please sign in to comment.