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

example to ensure structs are send #95

Merged
merged 4 commits into from
Feb 19, 2020
Merged

Conversation

bltavares
Copy link
Member

@bltavares bltavares commented Feb 3, 2020

Choose one: a 🙋 feature

Using hypercore on a multi-threaded async/await executor requires it to be send. This commit adds an example which requires the crate to be send, and changes all references to Rc with Arc.

Checklist

  • tests pass
  • tests and/or benchmarks are included: async example
  • documentation is changed or added

Context

Working on making hypercore thread-safe to use with async i/o. Draft PR to work in a distribute fashion with others and have earlier feedback.

Related to:

Needs:

Semver Changes

Minor?

Cargo.toml Outdated
@@ -25,7 +25,7 @@ failure = "0.1.5"
flat-tree = "4.1.0"
lazy_static = "1.3.0"
memory-pager = "0.9.0"
merkle-tree-stream = "0.10.0"
merkle-tree-stream = { version = "0.10.0", git = "https://github.com/bltavares/merkle-tree-stream", branch = "send" }
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we've merged this, but not published. Added you as a contrib, let me know if you need publish access on crates.io as well!

Copy link
Member Author

Choose a reason for hiding this comment

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

New version released.

@bltavares bltavares marked this pull request as ready for review February 19, 2020 00:07
@bltavares bltavares merged commit 31dfdd1 into datrs:master Feb 19, 2020
@bltavares bltavares deleted the send branch February 19, 2020 12:52
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.

2 participants