no data is included

This commit is contained in:
Jeremy Kauffman 2017-09-20 09:43:49 -04:00
parent 4553418f98
commit 13074fef0c

View file

@ -193,7 +193,8 @@ lbry.getCostInfo = function(uri) {
const COST_INFO_CACHE_KEY = "cost_info_cache";
let costInfoCache = getSession(COST_INFO_CACHE_KEY, {});
function cacheAndResolve(cost, includesData) {
function cacheAndResolve(cost) {
const includesData = false;
costInfoCache[uri] = { cost, includesData };
setSession(COST_INFO_CACHE_KEY, costInfoCache);
resolve({ cost, includesData });
@ -211,7 +212,7 @@ lbry.getCostInfo = function(uri) {
const name = uriObj.path || uriObj.name;
lbry.stream_cost_estimate({ uri }).then(cost => {
cacheAndResolve(cost, size !== null);
cacheAndResolve(cost);
}, reject);
});
}