Skip to content

Commit

Permalink
fix error check in swarm connect
Browse files Browse the repository at this point in the history
🤦‍♂️

fixes https://github.com/ipfs/go-ipfs/pull/6171/files/d21bb1eed85401412ad0e8749f60de75ee27051a#discussion_r271949856

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
  • Loading branch information
Stebalien committed Apr 3, 2019
1 parent 81b1cfe commit b6098ba
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 b6098ba

Please sign in to comment.