Seed Support #56

Closed
ocnios wants to merge 173 commits from master into build
2 changed files with 4 additions and 5 deletions
Showing only changes of commit ea5d85954f - Show all commits

View file

@ -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)
} }

View file

@ -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() {