mirror of https://github.com/embarklabs/embark.git
Abandons all storage initialisation routines if storage is disabled in config.
This commit is contained in:
parent
0ba5f1a1b3
commit
6f539198da
|
@ -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…
Reference in New Issue