Skip to content

Commit

Permalink
fix: pass logger to WS connection handle
Browse files Browse the repository at this point in the history
  • Loading branch information
tzdybal committed Jun 10, 2022
1 parent f2748ae commit ade5622
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rpc/json/ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ func (h *handler) wsHandler(w http.ResponseWriter, r *http.Request) {
}()

ws := &wsConn{
conn: wsc,
queue: make(chan []byte),
conn: wsc,
queue: make(chan []byte),
logger: h.logger,
}
go ws.sendLoop()

Expand Down

0 comments on commit ade5622

Please # to comment.