Skip to content

Commit

Permalink
fix: make sure wasmvm cache metrics collector after VM setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Aug 28, 2023
1 parent 9e50a42 commit acfe1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/wasm/keeper/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func WithAccountPruner(x AccountPruner) Option {
}

func WithVMCacheMetrics(r prometheus.Registerer) Option {
return optsFn(func(k *Keeper) {
return postOptsFn(func(k *Keeper) {

Check warning on line 129 in x/wasm/keeper/options.go

View check run for this annotation

Codecov / codecov/patch

x/wasm/keeper/options.go#L129

Added line #L129 was not covered by tests
NewWasmVMMetricsCollector(k.wasmVM).Register(r)
})
}
Expand Down

0 comments on commit acfe1e4

Please sign in to comment.