datrs / hypercore

Secure, distributed, append-only log
https://docs.rs/hypercore
Apache License 2.0
326 stars 37 forks source link

example to ensure structs are send #95

Closed bltavares closed 4 years ago

bltavares commented 4 years ago

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

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?