perf(store-and-forward): bound retry sweep with SweepBatchLimit (default 500) on the due-rows query
This commit is contained in:
@@ -601,7 +601,7 @@ public class StoreAndForwardService
|
||||
}
|
||||
}
|
||||
|
||||
var messages = await _storage.GetMessagesForRetryAsync();
|
||||
var messages = await _storage.GetMessagesForRetryAsync(_options.SweepBatchLimit);
|
||||
if (messages.Count == 0) return;
|
||||
|
||||
_logger.LogDebug("Retry sweep: {Count} messages due for retry", messages.Count);
|
||||
|
||||
Reference in New Issue
Block a user