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


The following commit(s) were added to refs/heads/main by this push:
     new 904020c  Update retry.go
     new be275b7  Merge pull request #7 from harshithasudhakar/patch-1
904020c is described below

commit 904020ca99cf7219b1c7902fc394b5ed9e84a5f2
Author: Harshitha Sudhakar 
<[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to