mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 12:51:22 +00:00
linting errors: clean it all up
This commit is contained in:
committed by
Ethan Buchman
parent
b75d4f73e7
commit
8f0237610e
@ -353,7 +353,8 @@ func (c *WSClient) writeRoutine() {
|
||||
defer func() {
|
||||
ticker.Stop()
|
||||
if err := c.conn.Close(); err != nil {
|
||||
// panic(err) FIXME: this panic will trigger in tests
|
||||
// ignore error; it will trigger in tests
|
||||
// likely because it's closing and already closed connection
|
||||
}
|
||||
c.wg.Done()
|
||||
}()
|
||||
@ -404,7 +405,8 @@ func (c *WSClient) writeRoutine() {
|
||||
func (c *WSClient) readRoutine() {
|
||||
defer func() {
|
||||
if err := c.conn.Close(); err != nil {
|
||||
// panic(err) FIXME: this panic will trigger in tests
|
||||
// ignore error; it will trigger in tests
|
||||
// likely because it's closing and already closed connection
|
||||
}
|
||||
c.wg.Done()
|
||||
}()
|
||||
|
Reference in New Issue
Block a user