Remove redundant info

This commit is contained in:
Owen
2026-03-16 13:50:45 -07:00
parent d4ebb3e2af
commit 24dfb3a8a2
2 changed files with 1 additions and 4 deletions

View File

@@ -566,7 +566,6 @@ func runNewtMain(ctx context.Context) {
secret, // CLI arg takes precedence
endpoint,
30*time.Second,
pingTimeout,
opt,
)
if err != nil {

View File

@@ -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,
}