mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-12 06:44:37 +00:00
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:
commit
2250e87294
@ -17,6 +17,8 @@ class Storage {
|
|||||||
this._events = options.events;
|
this._events = options.events;
|
||||||
this._logger = options.logger;
|
this._logger = options.logger;
|
||||||
|
|
||||||
|
if(!this._storageConfig.enabled) return;
|
||||||
|
|
||||||
// filter list of dapp connections based on available_providers set in config
|
// 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
|
let hasSwarm = _.contains(this._storageConfig.available_providers, 'swarm'); // don't need to eval this in every loop iteration
|
||||||
// contains valid dapp storage providers
|
// contains valid dapp storage providers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user