From 24dfb3a8a2c7be7cad59e3f976609c1b86d3ec4c Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 16 Mar 2026 13:50:45 -0700 Subject: [PATCH] Remove redundant info --- main.go | 1 - websocket/client.go | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/main.go b/main.go index b669af2..d736153 100644 --- a/main.go +++ b/main.go @@ -566,7 +566,6 @@ func runNewtMain(ctx context.Context) { secret, // CLI arg takes precedence endpoint, 30*time.Second, - pingTimeout, opt, ) if err != nil { diff --git a/websocket/client.go b/websocket/client.go index dd3f39a..533771b 100644 --- a/websocket/client.go +++ b/websocket/client.go @@ -38,7 +38,6 @@ type Client struct { isConnected bool reconnectMux sync.RWMutex pingInterval time.Duration - pingTimeout time.Duration onConnect func() error onTokenUpdate func(token string) writeMux sync.Mutex @@ -117,7 +116,7 @@ func (c *Client) MetricsContext() context.Context { } // NewClient creates a new websocket client -func NewClient(clientType string, ID, secret string, endpoint string, pingInterval time.Duration, pingTimeout time.Duration, opts ...ClientOption) (*Client, error) { +func NewClient(clientType string, ID, secret string, endpoint string, pingInterval time.Duration, opts ...ClientOption) (*Client, error) { config := &Config{ ID: ID, Secret: secret, @@ -132,7 +131,6 @@ func NewClient(clientType string, ID, secret string, endpoint string, pingInterv reconnectInterval: 3 * time.Second, isConnected: false, pingInterval: pingInterval, - pingTimeout: pingTimeout, clientType: clientType, }