re-add set providers call

This commit is contained in:
Iuri Matias 2018-07-07 19:49:18 +03:00
parent 651ef31bb5
commit 8384830066
1 changed files with 7 additions and 6 deletions

View File

@ -23,12 +23,13 @@ class Storage {
if (!this._storageConfig.enabled) return; 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
// this._validDappProviders = _.filter(this._storageConfig.dappConnection, (conn) => { this._validDappProviders = _.filter(this._storageConfig.dappConnection, (conn) => {
// return _.contains(this._storageConfig.available_providers, conn.provider) || (conn === '$BZZ' && hasSwarm); return _.contains(self._storageConfig.available_providers, conn.provider) || (conn === '$BZZ' && hasSwarm);
// }); });
this.addSetProviders();
// this.initStorageForEmbark(); // this.initStorageForEmbark();
// this.initStorageForDapp(); // this.initStorageForDapp();