feat(route-sync): use the smallest possible min sync delay

This commit is contained in:
Andrew Mayorov 2024-01-11 11:50:52 +01:00
parent 2ac6cddf19
commit 8f4758d9d4
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,11 @@
-define(POOL, router_syncer_pool).
-define(MAX_BATCH_SIZE, 1000).
-define(MIN_SYNC_INTERVAL, 1).
%% How long to idle (ms) after receiving a new operation before triggering batch sync?
%% Zero effectively just schedules out the process, so that it has a chance to receive
%% more operations, and introduce no minimum delay.
-define(MIN_SYNC_INTERVAL, 0).
%% How long (ms) to idle after observing a batch sync error?
%% Should help to avoid excessive retries in situations when errors are caused by