-
Notifications
You must be signed in to change notification settings - Fork 9
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: refactor to use async/await #7
Conversation
Refs ipfs/js-ipfs#1670 |
I switched CI over to travis (it was still on jenkins) if you want to rebase this. |
5ba7dfa
to
0e110eb
Compare
Rebased! |
Depends on: * [ ] ipfs-inactive/js-ipfs-http-client#1039 cc @achingbrain License: MIT Signed-off-by: Alan Shaw <[email protected]>
Needed for next js-ipfs release. Had to port some changes from #7 Depends on: * [ ] ipfs-inactive/js-ipfs-http-client#1039 cc @achingbrain License: MIT Signed-off-by: Alan Shaw <[email protected]>
@achingbrain 0.2.3 is out if you want to rebase this bad boy |
Needs ipfs/js-ipfsd-ctl#356 |
BREAKING CHANGE: API refactored to use async/await
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.
This looks good. 2/3rds of the missing codecov lines are due to the .aegir.js file changes, which it really shouldn't be picking up, so we can ignore the drop here.
options = options || {} | ||
} | ||
|
||
async * findProviders (key, options = {}) { |
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.
👍 it will be nice to have an iterable api all ready to go once the dht supports it.
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.
Death to lists. Iterate all of the things.
Seriously, it's going to alleviate so many memory problems..
Released in v0.3.0 |
Still got a couple of tests failing and some weirdness around the upgrade from
ipfs-api
toipfs-http-client
.Depends on ipfs/js-ipfsd-ctl#353