mirror of
https://github.com/tendermint/tendermint.git
synced 2026-05-25 00:21:31 +00:00
wip
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
dbm "github.com/tendermint/tm-db"
|
||||
|
||||
abciclient "github.com/tendermint/tendermint/abci/client"
|
||||
@@ -503,3 +504,10 @@ func createPrivval(ctx context.Context, logger log.Logger, conf *config.Config,
|
||||
|
||||
return defaultPV, nil
|
||||
}
|
||||
|
||||
func createRegistry(conf *config.Config) *prometheus.Registry {
|
||||
if conf.Instrumentation.Prometheus {
|
||||
return prometheus.NewRegistry()
|
||||
}
|
||||
return prometheus.NewRegistry()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user