datrs / hypercore

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

Emit Download and Append events #116

Open Frando opened 4 years ago

Frando commented 4 years ago

Choose one: a 🙋 feature

This PR adds a subscribe method to the Feed which returns a Receiver<Event>. Currently, there's two events being emitted: Download and Append. More can be added over time/when needed.

I think this will be important for upcoming replication integration.

Checklist

Context

Semver Changes

minor as it's only an API addition I think