Browse Source

update default retrycount 15 to 25.

master
yangxiaodong 7 years ago
parent
commit
1c03de4f94
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/DotNetCore.CAP/Processor/RetryBehavior.cs

+ 1
- 1
src/DotNetCore.CAP/Processor/RetryBehavior.cs View File

@@ -16,7 +16,7 @@ namespace DotNetCore.CAP.Processor


static RetryBehavior() static RetryBehavior()
{ {
DefaultRetryCount = 25;
DefaultRetryCount = 15;
DefaultRetryInThunk = retries => DefaultRetryInThunk = retries =>
(int)Math.Round(Math.Pow(retries - 1, 4) + 15 + (_random.Next(30) * (retries))); (int)Math.Round(Math.Pow(retries - 1, 4) + 15 + (_random.Next(30) * (retries)));




Loading…
Cancel
Save