Skip to content

Commit

Permalink
Don't set client to nil, since most places assume this is always set … (
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored Jun 17, 2024
1 parent 6409db1 commit 20d58b0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 20d58b0

Please sign in to comment.