-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
do resolve operations concurrently #2197
Conversation
@@ -132,23 +133,41 @@ func (r *routingResolver) resolveOnce(ctx context.Context, name string) (path.Pa | |||
// /ipns/<name> |
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.
Should the "name should be a multihash" comment be above the block on line 125?
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.
ah, probably. I'll go ahead and change that here
LGTM. Appveyor seems to be confused ("Specify a project or solution file. The directory does not contain a project or solution file."). Known issue? |
appveyor config is not merged yet: #2137 |
0f7213f
to
19b2f89
Compare
License: MIT Signed-off-by: Jeromy <[email protected]>
}() | ||
|
||
for i := 0; i < 2; i++ { | ||
err = <-resp |
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.
is this much faster than a WaitGroup
? (waitgroups are less error prone)
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.
waitgroups don't allow us to easily return errors. Otherwise its functionally identical to a waitgroup
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.
ahhh indeed
LGTM other than waitgroup comment o/ |
do resolve operations concurrently
Retrieve the ipns record and public key concurrently for a bit of speedup on name resolves.
License: MIT
Signed-off-by: Jeromy [email protected]