mirror of https://github.com/embarklabs/embark.git
re-add set providers call
This commit is contained in:
parent
651ef31bb5
commit
8384830066
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue