Skip to content

Commit

Permalink
fix: changing order of discovery message spam fix
Browse files Browse the repository at this point in the history
* Related #514

[ci skip]
  • Loading branch information
tegefaulkes committed Mar 19, 2023
1 parent df61f4c commit da2200f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/nodes/NodeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,10 @@ class NodeManager {
logger.info('Syncing nodeGraph');
// Getting the seed node connection information
const seedNodes = this.nodeConnectionManager.getSeedNodes();
if (seedNodes.length === 0) {
logger.debug(`No seed nodes provided, skipping discovery`);
return;
}
const addresses = await Promise.all(
await this.db.withTransactionF(async (tran) =>
seedNodes.map(
Expand All @@ -1190,10 +1194,6 @@ class NodeManager {
(address) => `${address.host}:${address.port}`,
)}`,
);
if (seedNodes.length === 0) {
logger.debug(`No seed nodes provided, skipping discovery`);
return;
}
// Establishing connections to the seed nodes
const connections =
await this.nodeConnectionManager.establishMultiConnection(
Expand Down

0 comments on commit da2200f

Please sign in to comment.