Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 132350a

Browse files
committed
fix: Remove unused context from Dial
1 parent 16ca4a6 commit 132350a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wsnet/dial.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ func DialWebsocket(ctx context.Context, broker string, iceServers []webrtc.ICESe
3636
// We should close the socket intentionally.
3737
_ = conn.Close(websocket.StatusInternalError, "an error occurred")
3838
}()
39-
return Dial(ctx, nconn, iceServers)
39+
return Dial(nconn, iceServers)
4040
}
4141

4242
// Dial negotiates a connection to a listener.
43-
func Dial(ctx context.Context, conn net.Conn, iceServers []webrtc.ICEServer) (*Dialer, error) {
43+
func Dial(conn net.Conn, iceServers []webrtc.ICEServer) (*Dialer, error) {
4444
if iceServers == nil {
4545
iceServers = []webrtc.ICEServer{}
4646
}

0 commit comments

Comments
 (0)