Skip to content

Commit

Permalink
fix: remove unnecessary code for handling websocket interruption
Browse files Browse the repository at this point in the history
  • Loading branch information
bi1101 committed May 3, 2024
1 parent e2a8152 commit 6417dab
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/chatgpt/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,6 @@ func Handler(c *gin.Context, response *http.Response, secret *tokens.Secret, pro
return "", nil
}
isWSInterrupt = true
connInfo.conn.WriteMessage(websocket.TextMessage, []byte("{\"type\":\"sequenceAck\",\"sequenceId\":"+strconv.Itoa(wsSeq)+"}"))
continue
}
if messageType == websocket.TextMessage {
Expand Down

0 comments on commit 6417dab

Please sign in to comment.