Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
/ Orion Public archive

Save IPFS_CLIENT correctly #99

Merged
merged 1 commit into from
May 7, 2018

Conversation

kernelwhisperer
Copy link
Contributor

What changed?

IPFS_CLIENT is saved correctly now.

The problem was how we called initIPFSClient which resulted in global.IPFS_CLIENT being undefined, 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 using promiseIPFSReady after init, like we use in index.js

This fixes: https://dev.siderus.team/issues/119

@koalalorenzo
Copy link
Member

Tested on macOS - latest and Ubuntu - 16.04

@koalalorenzo koalalorenzo merged commit 84fb829 into master May 7, 2018
@koalalorenzo koalalorenzo deleted the bugfix/119-storage-list-connects-forever branch May 7, 2018 19:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants