Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

refactor: convert from callbacks to async #13

Merged
merged 4 commits into from
Aug 16, 2019

Conversation

dirkmc
Copy link
Contributor

@dirkmc dirkmc commented Feb 19, 2019

BREAKING CHANGE: All places in the API that used callbacks are now replaced with async/await

Needs the following PRs:

Note that currently js-libp2p-crypto#131 depends on multihashing-async#master, whereas this PR depends on multihashing-async#37. So js-libp2p-crypto#131 will need to be updated to depend on multihashing-async#37 before this PR can be finished.

@dirkmc dirkmc marked this pull request as ready for review February 21, 2019 14:12
@dirkmc dirkmc changed the title Convert from callbacks to async WIP: Convert from callbacks to async Feb 21, 2019
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.

All in all, this looks great! Thanks @dirkmc

Just a minor request

src/validators/public-key.js Outdated Show resolved Hide resolved
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.

Looks good to me now!

Let's wait for the dependencies now

dirkmc and others added 4 commits August 14, 2019 13:26
BREAKING CHANGE: All places in the API that used callbacks are now replaced with async/await
chore: drop commitlint on travis
@jacobheun jacobheun changed the title WIP: Convert from callbacks to async refactor: convert from callbacks to async Aug 14, 2019
@jacobheun
Copy link
Contributor

@dirkmc @vasco-santos I went ahead and updated the dependencies for this and rebased with master. This should be good to go. (Note: I believe this is the last blocker for the dht full migration)

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!

@vasco-santos vasco-santos merged commit 42eab95 into libp2p:master Aug 16, 2019
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.

3 participants