Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it easier to swap nwaku for go-waku in tests #763

Merged
merged 9 commits into from
Aug 25, 2022
Prev Previous commit
Next Next commit
feat: improve log format for DNS discovery peers
  • Loading branch information
fryorcraken committed Aug 25, 2022

Verified

This commit was signed with the committer’s verified signature.
fryorcraken fryorcraken
commit 61701f0086f66f1d15ac4dff13673c01b07096a4
10 changes: 9 additions & 1 deletion src/lib/peer_discovery_dns/dns.ts
Original file line number Diff line number Diff line change
@@ -64,7 +64,15 @@ export class DnsNodeDiscovery {
this._errorTolerance,
() => this._search(domain, context)
);
dbg("retrieved peers: ", peers);
dbg(
"retrieved peers: ",
peers.map((peer) => {
return {
id: peer.peerId?.toString(),
multiaddrs: peer.multiaddrs?.map((ma) => ma.toString()),
};
})
);
return peers;
}