Skip to content

Commit

Permalink
Extended timeout to 20 sec (#193)
Browse files Browse the repository at this point in the history
* extended timeout to 20 sec
  • Loading branch information
tbazen authored Jan 25, 2024
1 parent e12193e commit 18105cc
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 = 1000;
private int _batchMaxTimeToWaitMs = 20_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 < 1000) ? 1000 : value;
set => _batchMaxTimeToWaitMs = (value < 20_000) ? 20_000 : value;
}
public int MaxAckTimeMs { get; set; } = 30_000;
public int MaxMsgDeliveries { get; set; } = 2;
Expand Down

0 comments on commit 18105cc

Please sign in to comment.