Ignore the linter

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-09-08 12:18:48 +02:00
parent ba9678bd61
commit 4fce0181ab
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -104,7 +104,7 @@ func NewPeerMgr(lc fx.Lifecycle, h host.Host, dht *dht.IpfsDHT, bootstrap dtypes
}
func (pmgr *PeerMgr) AddFilecoinPeer(p peer.ID) {
pmgr.filPeerEmitter.Emit(NewFilPeer{Id: p})
_ = pmgr.filPeerEmitter.Emit(NewFilPeer{Id: p}) //nolint:errcheck
pmgr.peersLk.Lock()
defer pmgr.peersLk.Unlock()
pmgr.peers[p] = time.Duration(0)