From 2a1c79aa8e721ee380d2ff76a00ac08b3f60ab18 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Mon, 17 Jun 2024 10:48:13 -0500 Subject: [PATCH] Don't set client to nil, since most places assume this is always set to an active client --- internal/metrics/metrics.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/metrics/metrics.go b/internal/metrics/metrics.go index 6406cd2..7e48b8e 100644 --- a/internal/metrics/metrics.go +++ b/internal/metrics/metrics.go @@ -136,7 +136,6 @@ func NewMetrics(port uint16, logLevel log.Level) (*Metrics, error) { } func (m *Metrics) setNewClient() error { - m.client = nil client, err := rpc.NewClient(rpc.ConnectionModeWebsocket, rpc.WithAutoConfig(), rpc.WithBaseURL(&url.URL{ Scheme: "wss", Host: viper.GetString("hostname"),