Tests almost passing

This commit is contained in:
Zach Ramsay
2017-10-03 19:36:01 -04:00
committed by Ethan Buchman
parent a15c7f221d
commit 7ad8a8ab55
6 changed files with 14 additions and 7 deletions

View File

@ -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.