MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / initMetrics

Function initMetrics

cmd/cql-minerd/node.go:102–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100}
101
102func initMetrics() {
103 if conf.GConf != nil {
104 expvar.NewString(mwMinerAddr).Set(conf.GConf.ListenAddr)
105 expvar.NewString(mwMinerExternalAddr).Set(conf.GConf.ExternalListenAddr)
106 expvar.NewString(mwMinerNodeID).Set(string(conf.GConf.ThisNodeID))
107 expvar.NewString(mwMinerWallet).Set(conf.GConf.WalletAddress)
108
109 if conf.GConf.Miner != nil {
110 expvar.NewString(mwMinerDiskRoot).Set(conf.GConf.Miner.RootDir)
111 }
112 }
113}

Callers 1

mainFunction · 0.85

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected