-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat: allow passing of multiple ENR URLs to DNS Discovery & dial multiple peers in parallel #1379
Conversation
size-limit report 📦
|
packages/dns-discovery/src/index.ts
Outdated
@@ -32,7 +32,7 @@ export interface Options { | |||
/** | |||
* ENR URL to use for DNS discovery | |||
*/ | |||
enrUrl: string; | |||
enrUrls: string[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can do string | string[]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @weboko to make API still accept string
as well as string[]
instead of enable I'd use allow inPR title (for changelog) Also, if you do |
1153394
to
b71930c
Compare
* ensure discovered peers are dialed in parallel * cap parallel dials * drop connection to bootstrap peer if >set connected * switch to american english * improve promises and error logging
This PR addresses point 1 at #1326