From 4bc0508c7dd7d5571f00883f69244be8abb1136c Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 16 Mar 2026 13:50:21 -0700 Subject: [PATCH] Remove redundant info --- olm/olm.go | 1 - websocket/client.go | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/olm/olm.go b/olm/olm.go index 96b0817..a458f8a 100644 --- a/olm/olm.go +++ b/olm/olm.go @@ -375,7 +375,6 @@ func (o *Olm) StartTunnel(config TunnelConfig) { config.OrgID, config.Endpoint, 30*time.Second, // 30 seconds - config.PingTimeoutDuration, websocket.WithPingDataProvider(func() map[string]any { o.metaMu.Lock() defer o.metaMu.Unlock() diff --git a/websocket/client.go b/websocket/client.go index 35b76b9..3b4e894 100644 --- a/websocket/client.go +++ b/websocket/client.go @@ -83,7 +83,6 @@ type Client struct { isDisconnected bool // Flag to track if client is intentionally disconnected reconnectMux sync.RWMutex pingInterval time.Duration - pingTimeout time.Duration onConnect func() error onTokenUpdate func(token string, exitNodes []ExitNode) onAuthError func(statusCode int, message string) // Callback for auth errors @@ -159,7 +158,7 @@ func (c *Client) OnAuthError(callback func(statusCode int, message string)) { } // NewClient creates a new websocket client -func NewClient(ID, secret, userToken, orgId, endpoint string, pingInterval time.Duration, pingTimeout time.Duration, opts ...ClientOption) (*Client, error) { +func NewClient(ID, secret, userToken, orgId, endpoint string, pingInterval time.Duration, opts ...ClientOption) (*Client, error) { config := &Config{ ID: ID, Secret: secret, @@ -176,7 +175,6 @@ func NewClient(ID, secret, userToken, orgId, endpoint string, pingInterval time. reconnectInterval: 3 * time.Second, isConnected: false, pingInterval: pingInterval, - pingTimeout: pingTimeout, clientType: "olm", pingDone: make(chan struct{}), }