mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-25 20:37:53 +08:00
Merge pull request #6174 from ipfs/fix/steb-is-jetlagged
fix error check in swarm connect
This commit is contained in:
commit
c8279e95b1
@ -40,7 +40,7 @@ func (api *SwarmAPI) Connect(ctx context.Context, pi pstore.PeerInfo) error {
|
||||
swrm.Backoff().Clear(pi.ID)
|
||||
}
|
||||
|
||||
if err := api.peerHost.Connect(ctx, pi); err == nil {
|
||||
if err := api.peerHost.Connect(ctx, pi); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user