item manager: cache no price when unable to batch lookup
This commit is contained in:
@@ -213,6 +213,12 @@ public class ItemManager
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
// cache unable to lookup
|
||||||
|
for (int itemId : lookup)
|
||||||
|
{
|
||||||
|
itemPriceCache.put(itemId, NONE);
|
||||||
|
}
|
||||||
|
|
||||||
future.completeExceptionally(ex);
|
future.completeExceptionally(ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user