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

refactor: async await #148

Merged
merged 4 commits into from
Nov 19, 2019
Merged

refactor: async await #148

merged 4 commits into from
Nov 19, 2019

Conversation

vasco-santos
Copy link
Member

@vasco-santos vasco-santos commented Nov 7, 2019

In the context of ipfs/js-ipfs#1670 all the API is moving into async

BREAKING CHANGE: Switch to using async/await and async iterators.

BREAKING CHANGE: Switch to using async/await and async iterators.
Copy link
Contributor

@dirkmc dirkmc left a comment

Choose a reason for hiding this comment

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

Nice work Vasco

Left a few nits but otherwise LGTM 👍

src/index.js Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
src/index.js Outdated Show resolved Hide resolved
src/index.js Outdated Show resolved Hide resolved
src/index.js Outdated Show resolved Hide resolved
src/index.js Outdated Show resolved Hide resolved
src/index.js Outdated Show resolved Hide resolved
src/routing.js Outdated Show resolved Hide resolved
@vasco-santos vasco-santos force-pushed the refactor/async-await branch 6 times, most recently from 767110f to 52d056e Compare November 14, 2019 11:19
@vasco-santos vasco-santos marked this pull request as ready for review November 14, 2019 13:34
@vasco-santos
Copy link
Member Author

@dirkmc can you have a new pass?

We decided to make this change in two different PRs. The first one (this) to move everything to async await, followed by a new one to move pull-streams to async-iterators using the new interface-connection and registrar

@vasco-santos
Copy link
Member Author

vasco-santos commented Nov 17, 2019

@dirkmc @jacobheun

I felt the dht code structure was getting in a point that it was really difficult to maintain. Therefore, I decided to restructure the file structure in order to ease maintainability and new contributions

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.

Just a few suggestions and a couple questions about TODOs, but otherwise this looks good.

src/content-fetching/index.js Show resolved Hide resolved
src/content-fetching/index.js Show resolved Hide resolved
src/content-fetching/index.js Show resolved Hide resolved
src/content-routing/index.js Show resolved Hide resolved
src/content-routing/index.js Show resolved Hide resolved
test/providers.spec.js Outdated Show resolved Hide resolved
test/kad-dht.spec.js Show resolved Hide resolved
test/kad-dht.spec.js Show resolved Hide resolved
test/kad-dht.spec.js Outdated Show resolved Hide resolved
test/kad-dht.spec.js Outdated Show resolved Hide resolved
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
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.

🚀

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