File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ func (sc *SubscriptionContext) run() {
490
490
491
491
if closeStatus < 0 {
492
492
sc .Log (err , map [string ]any {
493
- "source" : "client " ,
493
+ "source" : "server " ,
494
494
}, GQL_CONNECTION_ERROR )
495
495
496
496
continue
@@ -1530,7 +1530,7 @@ func (wh *WebsocketHandler) Ping() error {
1530
1530
1531
1531
// Close implements the function to close the websocket connection.
1532
1532
func (wh * WebsocketHandler ) Close () error {
1533
- globalWebSocketStats .AddDeadConnection (wh .id )
1533
+ globalWebSocketStats .AddClosedConnection (wh .id )
1534
1534
1535
1535
return wh .Conn .Close (websocket .StatusNormalClosure , "close websocket" )
1536
1536
}
@@ -1651,8 +1651,8 @@ func (ws *websocketStats) AddActiveConnection(id uuid.UUID) {
1651
1651
ws .activeConnectionIDs [id ] = true
1652
1652
}
1653
1653
1654
- // AddDeadConnection adds an dead connection id to the list.
1655
- func (ws * websocketStats ) AddDeadConnection (id uuid.UUID ) {
1654
+ // AddClosedConnection adds an dead connection id to the list.
1655
+ func (ws * websocketStats ) AddClosedConnection (id uuid.UUID ) {
1656
1656
ws .sync .Lock ()
1657
1657
defer ws .sync .Unlock ()
1658
1658
delete (ws .activeConnectionIDs , id )
You can’t perform that action at this time.
0 commit comments