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

Add fetchEntryTimeout option #61

Merged
merged 2 commits into from Jul 22, 2019

Conversation

chmanie
Copy link

@chmanie chmanie commented Jul 18, 2019

This adds a fetchEntryTimeout option to the store options for the constructor as well as the load() function (as the second argument) to allow for full flexibility when loading a store.

Defining a timeout makes sure that the store won't get stuck forever on loading when an entry is not available on IPFS.

This has an accompanying PR in ipfs-log: orbitdb/ipfs-log#258.

Resolves #60.

@chmanie chmanie changed the title Add fetchHeadTimeout option Add fetchEntryTimeout option Jul 18, 2019
@shamb0t
Copy link
Member

shamb0t commented Jul 22, 2019

Thank you @chmanie!

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.

Handling of non-existent ipfs entries when loading a store
2 participants