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

Add fetchEntryTimeout option #61

Merged

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-archive/ipfs-log#258.

Resolves #60.

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

shamb0t commented Jul 22, 2019

Thank you @chmanie!

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.

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