Bo He 3 years ago
parent
commit
79f751662c
1 changed files with 4 additions and 4 deletions
  1. 4 4
      transport/internet/websocket/connection.go

+ 4 - 4
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,
 	}
 }