Skip to content

Commit

Permalink
add missing wasm extensions on tier2
Browse files Browse the repository at this point in the history
  • Loading branch information
sduchesneau committed Mar 26, 2024
1 parent 5977d3f commit d6b1450
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions cmd/apps/substreams_tier2.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,18 @@ func RegisterSubstreamsTier2App[B firecore.Block](chain *firecore.Chain[B], root
}
}

wasmExtensions, err := chain.RegisterSubstreamsExtensions()
if err != nil {
return nil, fmt.Errorf("substreams extensions: %w", err)
}

return app.NewTier2(appLogger,
&app.Tier2Config{
Tracing: tracing,

GRPCListenAddr: grpcListenAddr,
ServiceDiscoveryURL: serviceDiscoveryURL,
WASMExtensions: wasmExtensions,

MaximumConcurrentRequests: maximumConcurrentRequests,
}, &app.Tier2Modules{
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ module github.com/streamingfast/firehose-core

go 1.22

replace github.com/streamingfast/substreams => github.com/streamingfast/substreams v1.4.1-0.20240326144332-9f8e91e85d39

require (
buf.build/gen/go/bufbuild/reflect/connectrpc/go v1.12.0-20230822193137-310c9c4845dd.1
buf.build/gen/go/bufbuild/reflect/protocolbuffers/go v1.31.0-20230822193137-310c9c4845dd.2
Expand Down Expand Up @@ -32,7 +30,7 @@ require (
github.com/streamingfast/logging v0.0.0-20230608130331-f22c91403091
github.com/streamingfast/pbgo v0.0.6-0.20240131193313-6b88bc7139db
github.com/streamingfast/snapshotter v0.0.0-20230316190750-5bcadfde44d0
github.com/streamingfast/substreams v1.4.1-0.20240326143310-a4878081f44c
github.com/streamingfast/substreams v1.4.1-0.20240326155609-e3ba0b840b6b
github.com/stretchr/testify v1.8.4
github.com/test-go/testify v1.1.4
go.uber.org/multierr v1.10.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,8 @@ github.com/streamingfast/shutter v1.5.0 h1:NpzDYzj0HVpSiDJVO/FFSL6QIK/YKOxY0gJAt
github.com/streamingfast/shutter v1.5.0/go.mod h1:B/T6efqdeMGbGwjzPS1ToXzYZI4kDzI5/u4I+7qbjY8=
github.com/streamingfast/snapshotter v0.0.0-20230316190750-5bcadfde44d0 h1:Y15G1Z4fpEdm2b+/70owI7TLuXadlqBtGM7rk4Hxrzk=
github.com/streamingfast/snapshotter v0.0.0-20230316190750-5bcadfde44d0/go.mod h1:/Rnz2TJvaShjUct0scZ9kKV2Jr9/+KBAoWy4UMYxgv4=
github.com/streamingfast/substreams v1.4.1-0.20240326144332-9f8e91e85d39 h1:pIcLENGVftM7G7KZ+dH/fIZGJ/fLDiSKn4mmS34u9jw=
github.com/streamingfast/substreams v1.4.1-0.20240326144332-9f8e91e85d39/go.mod h1:tS03mbQ14PcuqmQCKvj82yENHaMl2xKxUBvWHJT06QQ=
github.com/streamingfast/substreams v1.4.1-0.20240326155609-e3ba0b840b6b h1:eQ2OQI6AuIrV9xg6b2GWseBhPT5BVemoXwDFujAilZc=
github.com/streamingfast/substreams v1.4.1-0.20240326155609-e3ba0b840b6b/go.mod h1:tS03mbQ14PcuqmQCKvj82yENHaMl2xKxUBvWHJT06QQ=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
Expand Down

0 comments on commit d6b1450

Please sign in to comment.