Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

fix: crypto challenge stall due to callback usage of async/await #37

Merged
merged 1 commit into from
Aug 2, 2019

Conversation

jacobheun
Copy link
Contributor

@jacobheun jacobheun commented Aug 2, 2019

The async/await update (#35) did not fully migrate away from callbacks. It was still using callbacks for some of the crypto library usage. This caused crypto challenge to fail.

Note on testing: I didn't add a new test for this as we are planning to migrate the rendezvous server into https://github.com/libp2p/js-libp2p-websocket-star, per libp2p/js-libp2p-websocket-star#73, and the websocket-star test suite does catch this issue. I've created a PR there to demonstrate the fix.

fixes: #36

License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jacobheun jacobheun merged commit 2647595 into master Aug 2, 2019
@jacobheun jacobheun deleted the fix/async-await branch August 2, 2019 14:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update needs to be published to NPM
2 participants