Skip to content

Commit 4d87e2c

Browse files
committed
fix - Skip Cosmos REST sources silently in the subgraph module builder since buildCosmosSources prices them
1 parent c0713ff commit 4d87e2c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

go-ooo/ooo_api/dex/manifest.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ func BuildModulesFromManifest(cfg *config.Config, m *export.Manifest) []FamilyMo
7070
modules := make([]FamilyModule, 0, len(m.SupportedSources))
7171

7272
for _, src := range m.SupportedSources {
73+
// Cosmos REST sources (rest-sqs / rest-astroport) are priced by buildCosmosSources as their own
74+
// PriceSource, not as subgraph FamilyModules - skip them here silently. Without this they'd trip
75+
// the "unrecognised subgraph schema family" warning below (their family is "custom"), wrongly
76+
// implying they go unpriced when ApplyManifest in fact builds them.
77+
if isCosmosSourceType(src.SourceType) {
78+
continue
79+
}
80+
7381
family, ok := schemaFamilyFor(src.SubgraphSchemaFamily, src.Chain)
7482
if !ok {
7583
logger.WarnWithFields("dex", "BuildModulesFromManifest", "skip source",

0 commit comments

Comments
 (0)