renamed NewSolanaCollector -> newSolanaCollector
This commit is contained in:
parent
fb9beaf29d
commit
0dbc9f7954
|
@ -35,7 +35,7 @@ type solanaCollector struct {
|
||||||
solanaVersion *prometheus.Desc
|
solanaVersion *prometheus.Desc
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewSolanaCollector(rpcAddr string) *solanaCollector {
|
func newSolanaCollector(rpcAddr string) *solanaCollector {
|
||||||
return &solanaCollector{
|
return &solanaCollector{
|
||||||
rpcClient: rpc.NewRPCClient(rpcAddr),
|
rpcClient: rpc.NewRPCClient(rpcAddr),
|
||||||
totalValidatorsDesc: prometheus.NewDesc(
|
totalValidatorsDesc: prometheus.NewDesc(
|
||||||
|
@ -132,7 +132,7 @@ func main() {
|
||||||
|
|
||||||
httpTimeout = time.Duration(*httpTimeoutSecs) * time.Second
|
httpTimeout = time.Duration(*httpTimeoutSecs) * time.Second
|
||||||
|
|
||||||
collector := NewSolanaCollector(*rpcAddr)
|
collector := newSolanaCollector(*rpcAddr)
|
||||||
|
|
||||||
go collector.WatchSlots()
|
go collector.WatchSlots()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue