Skip to content

feat: add defaultStorage static method to Hypercore#13

Closed
achou11 wants to merge 1 commit intomainfrom
ac/hypercore-default-storage
Closed

feat: add defaultStorage static method to Hypercore#13
achou11 wants to merge 1 commit intomainfrom
ac/hypercore-default-storage

Conversation

@achou11
Copy link
Member

@achou11 achou11 commented Nov 8, 2023

Follow up for digidem/comapeo-core#367

Based on the implementation found in https://github.com/holepunchto/hypercore/blob/v10.31.6/index.js#L180-L204

Don't think the definition covers all of the implementation details of Hypercore.defaultStorage(), namely the case where you pass a RandomAccessStorage class (not instance). Otherwise I think it covers the cases we care about.

@achou11 achou11 requested a review from gmaclennan November 8, 2023 23:12
@gmaclennan
Copy link
Member

These changes are in #12 - sorry I didn't ping you on that one because it seemed non-urgent and I didn't want to give you too much to do! Turns out I gave you more work...

@gmaclennan gmaclennan closed this Nov 9, 2023
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.

2 participants