Skip to content
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

Merged
merged 1 commit into from
Jul 12, 2019
Merged

feat: refactor to use async/await #7

merged 1 commit into from
Jul 12, 2019

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Jul 4, 2019

Still got a couple of tests failing and some weirdness around the upgrade from ipfs-api to ipfs-http-client.

Depends on ipfs/js-ipfsd-ctl#353

@achingbrain
Copy link
Member Author

Refs ipfs/js-ipfs#1670

@jacobheun
Copy link
Contributor

I switched CI over to travis (it was still on jenkins) if you want to rebase this.

@achingbrain achingbrain force-pushed the async-await branch 2 times, most recently from 5ba7dfa to 0e110eb Compare July 5, 2019 16:17
@achingbrain
Copy link
Member Author

Rebased!

@achingbrain
Copy link
Member Author

package.json Outdated Show resolved Hide resolved
alanshaw pushed a commit that referenced this pull request Jul 10, 2019
alanshaw pushed a commit that referenced this pull request Jul 10, 2019
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]>
@alanshaw alanshaw mentioned this pull request Jul 10, 2019
1 task
@jacobheun
Copy link
Contributor

@achingbrain 0.2.3 is out if you want to rebase this bad boy

@achingbrain
Copy link
Member Author

Needs ipfs/js-ipfsd-ctl#356

@achingbrain
Copy link
Member Author

image

BREAKING CHANGE: API refactored to use async/await
Copy link
Contributor

@jacobheun jacobheun left a 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 = {}) {
Copy link
Contributor

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.

Copy link
Member Author

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..

@jacobheun jacobheun merged commit 0e2d91f into master Jul 12, 2019
@jacobheun jacobheun deleted the async-await branch July 12, 2019 08:14
@jacobheun
Copy link
Contributor

Released in v0.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants