From 856fb79e79a54c5d25129d403c0d8b753dd2e7a8 Mon Sep 17 00:00:00 2001 From: aqa510415008 <510415008@qq.com> Date: Thu, 11 Oct 2018 11:21:31 +0800 Subject: [PATCH] Optimized retry mechanism --- .../Requester/DynamicGrainMethodInvoker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ocelot.OrleansHttpGateway/Requester/DynamicGrainMethodInvoker.cs b/src/Ocelot.OrleansHttpGateway/Requester/DynamicGrainMethodInvoker.cs index 25136e3..87b39e6 100644 --- a/src/Ocelot.OrleansHttpGateway/Requester/DynamicGrainMethodInvoker.cs +++ b/src/Ocelot.OrleansHttpGateway/Requester/DynamicGrainMethodInvoker.cs @@ -56,7 +56,7 @@ public async Task> Invoke(GrainReference grain, _logger.LogError($"Request {grain.GrainType.Name} Orleans failed,", ex); if (ex.InnerException != null && ex.InnerException is Orleans.Runtime.OrleansMessageRejectionException) { - await Task.Delay(1000); + await Task.Delay(1); return await this.Invoke(executor, grain, parameters); } throw ex;