Save IPFS_CLIENT correctly #99
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Siderus/Orion!99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bugfix/119-storage-list-connects-forever"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed?
IPFS_CLIENT is saved correctly now.
The problem was how we called
initIPFSClientwhich resulted inglobal.IPFS_CLIENTbeingundefined, hence, the remotes were initializing IPFS client themselves instead of sharing the instance from the main process. Which should work (and sometimes does after you trigger some other API call, like adding a file), but not always because of the remotes not usingpromiseIPFSReadyafter init, like we use inindex.jsThis fixes: https://dev.siderus.team/issues/119
Tested on macOS - latest and Ubuntu - 16.04