Skip to content

Commit

Permalink
Merge pull request #6174 from ipfs/fix/steb-is-jetlagged
Browse files Browse the repository at this point in the history
fix error check in swarm connect
  • Loading branch information
Stebalien authored Apr 4, 2019
2 parents 81b1cfe + b6098ba commit c8279e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/coreapi/swarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c8279e9

Please sign in to comment.