Skip to content
Snippets Groups Projects
Commit 62084955 authored by Kelly Washington's avatar Kelly Washington
Browse files

MAINT-1078 Merchant Outbox import failures

Add 1s throttle on update checks for importer
reviewed with Simon
parent 3ca7e94d
Branches
Tags
No related merge requests found
...@@ -336,13 +336,19 @@ namespace LLMarketplaceImport ...@@ -336,13 +336,19 @@ namespace LLMarketplaceImport
// Interface class // Interface class
// //
static const F32 MARKET_IMPORTER_UPDATE_FREQUENCY = 1.0f;
//static //static
void LLMarketplaceInventoryImporter::update() void LLMarketplaceInventoryImporter::update()
{ {
if (instanceExists()) if (instanceExists())
{
static LLTimer update_timer;
if (update_timer.hasExpired())
{ {
LLMarketplaceInventoryImporter::instance().updateImport(); LLMarketplaceInventoryImporter::instance().updateImport();
update_timer.setTimerExpirySec(MARKET_IMPORTER_UPDATE_FREQUENCY);
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment