You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by wa...@apache.org on 2023/04/24 01:53:25 UTC
[eventmesh-go] 09/13: Update retry.go
This is an automated email from the ASF dual-hosted git repository.
walleliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/eventmesh-go.git
commit 904020ca99cf7219b1c7902fc394b5ed9e84a5f2
Author: Harshitha Sudhakar <11...@users.noreply.github.com>
AuthorDate: Sat Apr 22 17:18:01 2023 +0530
Update retry.go
Returns "time.Until(c.ExecuteTime)" at line 32
---
runtime/core/protocol/grpc/retry/retry.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtime/core/protocol/grpc/retry/retry.go b/runtime/core/protocol/grpc/retry/retry.go
index 7f8ae47..27bb8db 100644
--- a/runtime/core/protocol/grpc/retry/retry.go
+++ b/runtime/core/protocol/grpc/retry/retry.go
@@ -29,5 +29,5 @@ func (c *Retry) SetDelay(delay time.Duration) *Retry {
}
func (c *Retry) GetDelay() time.Duration {
- return c.ExecuteTime.Sub(time.Now())
+ return time.Until(c.ExecuteTime)
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org