renamed NewSolanaCollector -> newSolanaCollector

This commit is contained in:
Matt Johnstone 2024-06-11 11:00:35 +02:00
parent fb9beaf29d
commit 0dbc9f7954
No known key found for this signature in database
GPG Key ID: BE985FBB9BE7D3BB
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ type solanaCollector struct {
solanaVersion *prometheus.Desc
}
func NewSolanaCollector(rpcAddr string) *solanaCollector {
func newSolanaCollector(rpcAddr string) *solanaCollector {
return &solanaCollector{
rpcClient: rpc.NewRPCClient(rpcAddr),
totalValidatorsDesc: prometheus.NewDesc(
@ -132,7 +132,7 @@ func main() {
httpTimeout = time.Duration(*httpTimeoutSecs) * time.Second
collector := NewSolanaCollector(*rpcAddr)
collector := newSolanaCollector(*rpcAddr)
go collector.WatchSlots()