fix: make sure wasmvm cache metrics collector after VM setup

This commit is contained in:
Paul Chen
2023-08-28 17:54:22 +08:00
parent 9e50a423fb
commit acfe1e4f27

View File

@@ -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) {
NewWasmVMMetricsCollector(k.wasmVM).Register(r)
})
}