Skip to content

Commit

Permalink
change MaxInflight to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
lghinet committed Apr 16, 2019
1 parent bf69953 commit 077819a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ private Task SubscribeToTopicAsync(string subject, Func<string, Task> handler, C
opts.ManualAcks = _subscriberOptions.AcknowledgeStrategy != MessagingAcknowledgeStrategy.Auto;

//https://github.com/nats-io/go-nats-streaming#subscriber-rate-limiting
opts.MaxInflight = 5;
opts.AckWait = 40000;
opts.MaxInflight = 1;
opts.AckWait = 50000;

void StanMsgHandler(object obj, StanMsgHandlerArgs args)
{
Expand Down

0 comments on commit 077819a

Please sign in to comment.