Skip to content

Commit 20d58b0

Browse files
authored
Don't set client to nil, since most places assume this is always set … (#170)
1 parent 6409db1 commit 20d58b0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

internal/metrics/metrics.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ func NewMetrics(port uint16, logLevel log.Level) (*Metrics, error) {
136136
}
137137

138138
func (m *Metrics) setNewClient() error {
139-
m.client = nil
140139
client, err := rpc.NewClient(rpc.ConnectionModeWebsocket, rpc.WithAutoConfig(), rpc.WithBaseURL(&url.URL{
141140
Scheme: "wss",
142141
Host: viper.GetString("hostname"),

0 commit comments

Comments
 (0)