This is an automated email from the ASF dual-hosted git repository. chenguangsheng pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/eventmesh-go.git
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]
