From 79f751662c8eef508603f3f0bb34858025a0f09d Mon Sep 17 00:00:00 2001 From: Bo He Date: Wed, 22 Dec 2021 22:51:11 +0800 Subject: [PATCH] fix typo (#1475) --- transport/internet/websocket/connection.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/transport/internet/websocket/connection.go b/transport/internet/websocket/connection.go index 81d951b14..3c72e1131 100644 --- a/transport/internet/websocket/connection.go +++ b/transport/internet/websocket/connection.go @@ -47,21 +47,21 @@ func newConnectionWithEarlyData(conn *websocket.Conn, remoteAddr net.Addr, early } func newConnectionWithDelayedDial(dialer DelayedDialer) *connection { - delayedDialContext, CancellFunc := context.WithCancel(context.Background()) + delayedDialContext, cancelFunc := context.WithCancel(context.Background()) return &connection{ shouldWait: true, delayedDialFinish: delayedDialContext, - finishedDial: CancellFunc, + finishedDial: cancelFunc, dialer: dialer, } } func newRelayedConnectionWithDelayedDial(dialer DelayedDialerForwarded) *connectionForwarder { - delayedDialContext, CancellFunc := context.WithCancel(context.Background()) + delayedDialContext, cancelFunc := context.WithCancel(context.Background()) return &connectionForwarder{ shouldWait: true, delayedDialFinish: delayedDialContext, - finishedDial: CancellFunc, + finishedDial: cancelFunc, dialer: dialer, } }