Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

First proposal of injected EventStore #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

julienmalard
Copy link

This is my first try at injecting dependencies as suggested in #899. Is this what you had in mind?

As of now, it replaces the FeedStore class with a function that takes an EventStore class and generates a FeedStore class.

Also, would it be best to leave const EventStore = require('orbit-db-eventstore') as the default EventStore if none is specified?

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.

1 participant