Skip to content

Commit

Permalink
graph: Support data source context in manifest for subgraph datasources
Browse files Browse the repository at this point in the history
  • Loading branch information
incrypto32 committed Feb 3, 2025
1 parent df52d39 commit 81d2898
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graph/src/data_source/subgraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ pub struct UnresolvedDataSource {
pub network: String,
pub source: UnresolvedSource,
pub mapping: UnresolvedMapping,
pub context: Option<DataSourceContext>,
}

#[derive(Clone, Debug, Default, Hash, Eq, PartialEq, Deserialize)]
Expand Down Expand Up @@ -326,7 +327,7 @@ impl UnresolvedDataSource {
network: self.network,
source,
mapping: self.mapping.resolve(resolver, logger).await?,
context: Arc::new(None),
context: Arc::new(self.context),
creation_block: None,
})
}
Expand Down

0 comments on commit 81d2898

Please sign in to comment.