Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Emit Download and Append events #116

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Emit Download and Append events #116

wants to merge 8 commits into from

Conversation

Frando
Copy link
Member

@Frando Frando commented May 19, 2020

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

  • tests pass
  • tests and/or benchmarks are included

Context

Semver Changes

minor as it's only an API addition I think

Frando and others added 8 commits July 20, 2020 23:08
This removes the generic argument from the Feed struct, making it
simpler to work with. Instead, the Storage is internally put into a
Box<dyn DynStorage>, where DynStorage is an async trait with the public
Storage functions.
... so that addding new events is not a breaking change.
Without this, some examples fail. Not sure exactly why.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants