mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 04:41:22 +00:00
linting: few more fixes
This commit is contained in:
committed by
Ethan Buchman
parent
c7b6faf96a
commit
c84c7250ba
@ -529,12 +529,9 @@ func (wsc *wsConnection) readRoutine() {
|
||||
wsc.WriteRPCResponse(types.RPCInternalError("unknown", err))
|
||||
go wsc.readRoutine()
|
||||
} else {
|
||||
if err := wsc.baseConn.Close(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
wsc.baseConn.Close() // nolint: errcheck
|
||||
}
|
||||
}()
|
||||
defer wsc.baseConn.Close()
|
||||
|
||||
wsc.baseConn.SetPongHandler(func(m string) error {
|
||||
return wsc.baseConn.SetReadDeadline(time.Now().Add(wsc.readWait))
|
||||
|
Reference in New Issue
Block a user