This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/main by this push:
     new 4c945fbff fix #2546, change timeout of DubboInvoker from Milliseconds 
to Nanoseconds(#2552)
4c945fbff is described below

commit 4c945fbff0b91d7a8f54292bbb520909ce44d55a
Author: Jafeyyu <[email protected]>
AuthorDate: Wed Jan 3 10:40:45 2024 +0800

    fix #2546, change timeout of DubboInvoker from Milliseconds to 
Nanoseconds(#2552)
---
 protocol/dubbo/dubbo_invoker.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/protocol/dubbo/dubbo_invoker.go b/protocol/dubbo/dubbo_invoker.go
index 4a633a17c..51e09142d 100644
--- a/protocol/dubbo/dubbo_invoker.go
+++ b/protocol/dubbo/dubbo_invoker.go
@@ -175,9 +175,9 @@ func (di *DubboInvoker) getTimeout(ivc 
*invocation.RPCInvocation) time.Duration
                if len(mTimeout) != 0 {
                        timeout, _ = time.ParseDuration(mTimeout)
                }
-               // set timeout into invocation
-               ivc.SetAttachment(constant.TimeoutKey, 
strconv.Itoa(int(timeout.Milliseconds())))
        }
+       // set timeout into invocation
+       ivc.SetAttachment(constant.TimeoutKey, 
strconv.Itoa(int(timeout.Nanoseconds())))
        return timeout
 }
 

Reply via email to