Seed Support #56
2 changed files with 4 additions and 5 deletions
|
@ -641,8 +641,8 @@ lbry.claim_list_mine = function(params={}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
lbry.resolve = function(params={}) {
|
lbry.resolve = function(params={}) {
|
||||||
const claimCacheKey = 'resolve_claim_cache3',
|
const claimCacheKey = 'resolve_claim_cache',
|
||||||
claimCache = getLocal(claimCacheKey, {})
|
claimCache = getSession(claimCacheKey, {})
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (!params.uri) {
|
if (!params.uri) {
|
||||||
throw "Resolve has hacked cache on top of it that requires a URI"
|
throw "Resolve has hacked cache on top of it that requires a URI"
|
||||||
|
@ -652,7 +652,7 @@ lbry.resolve = function(params={}) {
|
||||||
} else {
|
} else {
|
||||||
lbry.call('resolve', params, function(data) {
|
lbry.call('resolve', params, function(data) {
|
||||||
claimCache[params.uri] = data;
|
claimCache[params.uri] = data;
|
||||||
setLocal(claimCacheKey, claimCache)
|
setSession(claimCacheKey, claimCache)
|
||||||
resolve(data)
|
resolve(data)
|
||||||
}, reject)
|
}, reject)
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,8 +10,7 @@ const lbryio = {
|
||||||
enabled: false
|
enabled: false
|
||||||
};
|
};
|
||||||
|
|
||||||
// const CONNECTION_STRING = process.env.LBRY_APP_API_URL ? process.env.LBRY_APP_API_URL : 'https://api.lbry.io/';
|
const CONNECTION_STRING = process.env.LBRY_APP_API_URL ? process.env.LBRY_APP_API_URL : 'https://api.lbry.io/';
|
||||||
const CONNECTION_STRING = 'https://api.lbry.io/';
|
|
||||||
const EXCHANGE_RATE_TIMEOUT = 20 * 60 * 1000;
|
const EXCHANGE_RATE_TIMEOUT = 20 * 60 * 1000;
|
||||||
|
|
||||||
lbryio.getExchangeRates = function() {
|
lbryio.getExchangeRates = function() {
|
||||||
|
|
Loading…
Reference in a new issue