Skip to content
This repository was archived by the owner on Oct 23, 2022. It is now read-only.

Make IpldDag and Ipns async_traits#285

Open
ljedrz wants to merge 2 commits into
rs-ipfs:masterfrom
ljedrz:async_trait_dag_ipns
Open

Make IpldDag and Ipns async_traits#285
ljedrz wants to merge 2 commits into
rs-ipfs:masterfrom
ljedrz:async_trait_dag_ipns

Conversation

@ljedrz

@ljedrz ljedrz commented Aug 5, 2020

Copy link
Copy Markdown
Member

This was a part of #264 which was surprisingly painless and seems more idiomatic than the current approach of creating ad-hoc intermediate structs containing an Ipfs (which is internally an Arc).

Signed-off-by: ljedrz <ljedrz@gmail.com>
@ljedrz
ljedrz requested a review from koivunej August 5, 2020 10:40
@ljedrz

ljedrz commented Aug 5, 2020

Copy link
Copy Markdown
Member Author

Oof, forgot the tests 😄.

@ljedrz
ljedrz marked this pull request as draft August 5, 2020 10:45
Signed-off-by: ljedrz <ljedrz@gmail.com>
@ljedrz
ljedrz force-pushed the async_trait_dag_ipns branch from ed13282 to aca0b14 Compare August 5, 2020 10:50
@ljedrz
ljedrz marked this pull request as ready for review August 5, 2020 11:00

@koivunej koivunej left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Not entirely sure if we need to go into this direction, at least yet (as discussed). Apart from async_trait, we could see if pollable-async-trait could be used but lets consider this later.

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