Skip to content

Commit

Permalink
fix issue preventing 'service discovery url' parameters from being ef…
Browse files Browse the repository at this point in the history
…fective
  • Loading branch information
sduchesneau committed Mar 27, 2024
1 parent bfdaf58 commit 2ed0bc5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/apps/substreams_tier2.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,16 @@ func RegisterSubstreamsTier2App[B firecore.Block](chain *firecore.Chain[B], root

var serviceDiscoveryURL *url.URL
if rawServiceDiscoveryURL != "" {
serviceDiscoveryURL, err := url.Parse(rawServiceDiscoveryURL)
var err error
svcURL, err := url.Parse(rawServiceDiscoveryURL)
if err != nil {
return nil, fmt.Errorf("unable to parse discovery service url: %w", err)
}
err = discoveryservice.Bootstrap(serviceDiscoveryURL)
err = discoveryservice.Bootstrap(svcURL)
if err != nil {
return nil, fmt.Errorf("unable to bootstrap discovery service: %w", err)
}
serviceDiscoveryURL = svcURL
}

wasmExtensions, err := chain.RegisterSubstreamsExtensions()
Expand Down

0 comments on commit 2ed0bc5

Please sign in to comment.