Skip to content

Commit

Permalink
fix(core-p2p): limit max retries form infinity to 1 (#3916)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastijankuzner authored Jul 24, 2020
1 parent 95d6b2c commit 184f500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-p2p/src/peer-connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class PeerConnector implements Contracts.P2P.PeerConnector {
this.logger.debug(`Socket error (peer ${peer.ip}) : ${error.message}`);
};

await connection.connect();
await connection.connect({ retries: 1 });

return connection;
}
Expand Down

0 comments on commit 184f500

Please sign in to comment.