a few missed behaviors

This commit is contained in:
Jeremy Kauffman 2017-05-01 18:33:22 -04:00
parent 13e198f20e
commit ea5d85954f
2 changed files with 4 additions and 5 deletions

View file

@ -641,8 +641,8 @@ lbry.claim_list_mine = function(params={}) {
}
lbry.resolve = function(params={}) {
const claimCacheKey = 'resolve_claim_cache3',
claimCache = getLocal(claimCacheKey, {})
const claimCacheKey = 'resolve_claim_cache',
claimCache = getSession(claimCacheKey, {})
return new Promise((resolve, reject) => {
if (!params.uri) {
throw "Resolve has hacked cache on top of it that requires a URI"
@ -652,7 +652,7 @@ lbry.resolve = function(params={}) {
} else {
lbry.call('resolve', params, function(data) {
claimCache[params.uri] = data;
setLocal(claimCacheKey, claimCache)
setSession(claimCacheKey, claimCache)
resolve(data)
}, reject)
}

View file

@ -10,8 +10,7 @@ const lbryio = {
enabled: false
};
// 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 CONNECTION_STRING = process.env.LBRY_APP_API_URL ? process.env.LBRY_APP_API_URL : 'https://api.lbry.io/';
const EXCHANGE_RATE_TIMEOUT = 20 * 60 * 1000;
lbryio.getExchangeRates = function() {