Skip to content

Commit

Permalink
await setDhtNodes bug fix (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiRegiani authored Jan 9, 2025
1 parent 4806cd9 commit f65d087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsystems/sidecar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ class Sidecar extends ReadyResource {
if (!this.dhtBootstrap) {
const knownNodes = this.swarm.dht.toArray({ limit: KNOWN_NODES_LIMIT })
if (knownNodes.length) {
this.model.setDhtNodes(knownNodes)
await this.model.setDhtNodes(knownNodes)
LOG.info('sidecar', '- DHT known-nodes wrote to database ' + knownNodes.length + ' nodes')
LOG.trace('sidecar', knownNodes.map(node => ` - ${node.host}:${node.port}`).join('\n'))
}
Expand Down

0 comments on commit f65d087

Please sign in to comment.