Skip to content

Commit

Permalink
_batchMaxTimeToWaitMs 20_000 -> 1_000
Browse files Browse the repository at this point in the history
  • Loading branch information
shay23b committed Feb 7, 2024
1 parent 14b9a47 commit 6f5c93e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Memphis.Client/Consumer/MemphisConsumerOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Memphis.Client.Consumer;

public sealed class MemphisConsumerOptions
{
private int _batchMaxTimeToWaitMs = 20_000;
private int _batchMaxTimeToWaitMs = 1_000;

public string StationName { get; set; }
public string ConsumerName { get; set; }
Expand All @@ -19,7 +19,7 @@ public sealed class MemphisConsumerOptions
public int BatchMaxTimeToWaitMs
{
get => _batchMaxTimeToWaitMs;
set => _batchMaxTimeToWaitMs = (value < 20_000) ? 20_000 : value;
set => _batchMaxTimeToWaitMs = (value < 1_000) ? 1_000 : value;
}
public int MaxAckTimeMs { get; set; } = 30_000;
public int MaxMsgDeliveries { get; set; } = 2;
Expand Down

0 comments on commit 6f5c93e

Please sign in to comment.