Skip to content

Commit

Permalink
orderdb login failed error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetozkaya committed Dec 14, 2020
1 parent dad0aca commit 4886401
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -28,11 +28,12 @@ public static async Task SeedAsync(OrderContext orderContext, ILoggerFactory log
}
catch (Exception exception)
{
if (retryForAvailability < 5)
if (retryForAvailability < 50)
{
retryForAvailability++;
var log = loggerFactory.CreateLogger<OrderContextSeed>();
log.LogError(exception.Message);
System.Threading.Thread.Sleep(2000);
await SeedAsync(orderContext, loggerFactory, retryForAvailability);
}
throw;
Expand Down

0 comments on commit 4886401

Please sign in to comment.