good morning!!!!

Skip to content
Snippets Groups Projects
Commit c88acc49 authored by a's avatar a
Browse files

revert again

parent eb1e9055
No related branches found
No related tags found
No related merge requests found
......@@ -160,10 +160,10 @@ func heartbeat(ctx context.Context, c *websocket.Conn, d time.Duration) {
func newWebsocketCodec(ctx context.Context, c *websocket.Conn, host string, req http.Header) ServerCodec {
c.SetReadLimit(wsMessageSizeLimit)
jsonWriter := func(v any) error {
return wsjson.Write(ctx, c, v)
return wsjson.Write(context.Background(), c, v)
}
jsonReader := func(v any) error {
return wsjson.Read(ctx, c, v)
return wsjson.Read(context.Background(), c, v)
}
conn := websocket.NetConn(ctx, c, websocket.MessageText)
wc := &websocketCodec{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment