Skip to content

Commit

Permalink
fix #2546, change timeout of DubboInvoker from Milliseconds to Nanose…
Browse files Browse the repository at this point in the history
…conds(#2552)
  • Loading branch information
Jafeyyu authored Jan 3, 2024
1 parent 3686617 commit 4c945fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/dubbo/dubbo_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 4c945fb

Please sign in to comment.