Skip to content

Commit 856fb79

Browse files
committed
Optimized retry mechanism
1 parent 1f24abd commit 856fb79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ocelot.OrleansHttpGateway/Requester/DynamicGrainMethodInvoker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public async Task<Response<OrleansResponseMessage>> Invoke(GrainReference grain,
5656
_logger.LogError($"Request {grain.GrainType.Name} Orleans failed,", ex);
5757
if (ex.InnerException != null && ex.InnerException is Orleans.Runtime.OrleansMessageRejectionException)
5858
{
59-
await Task.Delay(1000);
59+
await Task.Delay(1);
6060
return await this.Invoke(executor, grain, parameters);
6161
}
6262
throw ex;

0 commit comments

Comments
 (0)