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

Hypercore v1 #5

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Hypercore v1 #5

wants to merge 4 commits into from

Conversation

RangerMauve
Copy link
Collaborator

Changes proposed in this pull request:

  • Makes feed / sync operations async
  • Adds new HypercoreMember and HypercoreFeed classes using hyper-sdk
  • Updates tests to use hypercores for replication
  • Fixed bugs that popped up due to timing changes

@consento-org/maintainer

@RangerMauve
Copy link
Collaborator Author

This should be ready to be looked at. Gonna get started on the general "Group" abstraction that will make it easy to spin up groups and control membership within them.

After that I'll put together an example using this tech.


constructor ({
id = randomBytes(8).toString('hex'),
initiator = id
initiator = id,
loadFeed = defaultFeedLoader
Copy link
Member

Choose a reason for hiding this comment

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

Looking over the code the name loadFeed has been sticking out to me: As a developer using this API: what am I supposed to do? In the current case its like getOrLoadFeed if I understand it correctly but I was wondering if maybe reqestFeed may be appropriate?

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.

None yet

2 participants