mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
Tests almost passing
This commit is contained in:
committed by
Ethan Buchman
parent
a15c7f221d
commit
7ad8a8ab55
@ -88,7 +88,9 @@ func newOutboundPeer(addr *NetAddress, reactorsByCh map[byte]Reactor, chDescs []
|
||||
|
||||
peer, err := newPeerFromConnAndConfig(conn, true, reactorsByCh, chDescs, onPeerError, ourNodePrivKey, config)
|
||||
if err != nil {
|
||||
conn.Close()
|
||||
if err := conn.Close(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
return peer, nil
|
||||
@ -146,7 +148,7 @@ func (p *peer) SetLogger(l log.Logger) {
|
||||
|
||||
// CloseConn should be used when the peer was created, but never started.
|
||||
func (p *peer) CloseConn() {
|
||||
p.conn.Close()
|
||||
p.conn.Close() // nolint: errcheck
|
||||
}
|
||||
|
||||
// makePersistent marks the peer as persistent.
|
||||
|
Reference in New Issue
Block a user