Merge pull request #582 from embark-framework/bug_fix/simple-ipfs-active-when-disabled

Abandons all storage initialisation routines if storage is disabled i…
This commit is contained in:
Iuri Matias 2018-06-26 16:19:41 -04:00 committed by GitHub
commit 2250e87294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ class Storage {
this._events = options.events;
this._logger = options.logger;
if(!this._storageConfig.enabled) return;
// filter list of dapp connections based on available_providers set in config
let hasSwarm = _.contains(this._storageConfig.available_providers, 'swarm'); // don't need to eval this in every loop iteration
// contains valid dapp storage providers