This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/develop by this push:
new 7b4706054 rename invocation (#2907)
7b4706054 is described below
commit 7b47060542a564ece86014a385a02fa7a290bd43
Author: marsevilspirit <[email protected]>
AuthorDate: Mon Jun 2 11:42:41 2025 +0800
rename invocation (#2907)
---
client/client.go | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/client/client.go b/client/client.go
index 4d6096fc8..069fdced1 100644
--- a/client/client.go
+++ b/client/client.go
@@ -28,7 +28,7 @@ import (
"dubbo.apache.org/dubbo-go/v3/common/constant"
"dubbo.apache.org/dubbo-go/v3/metadata"
"dubbo.apache.org/dubbo-go/v3/protocol/base"
- invocation_impl "dubbo.apache.org/dubbo-go/v3/protocol/invocation"
+ "dubbo.apache.org/dubbo-go/v3/protocol/invocation"
"dubbo.apache.org/dubbo-go/v3/protocol/result"
)
@@ -195,13 +195,13 @@ func generateInvocation(methodName string, reqs []any,
resp any, callType string
if resp != nil {
paramsRawVals = append(paramsRawVals, resp)
}
- inv := invocation_impl.NewRPCInvocationWithOptions(
- invocation_impl.WithMethodName(methodName),
- invocation_impl.WithAttachment(constant.TimeoutKey,
opts.RequestTimeout),
- invocation_impl.WithAttachment(constant.RetriesKey,
opts.Retries),
- invocation_impl.WithArguments(reqs),
- invocation_impl.WithReply(resp),
- invocation_impl.WithParameterRawValues(paramsRawVals),
+ inv := invocation.NewRPCInvocationWithOptions(
+ invocation.WithMethodName(methodName),
+ invocation.WithAttachment(constant.TimeoutKey,
opts.RequestTimeout),
+ invocation.WithAttachment(constant.RetriesKey, opts.Retries),
+ invocation.WithArguments(reqs),
+ invocation.WithReply(resp),
+ invocation.WithParameterRawValues(paramsRawVals),
)
inv.SetAttribute(constant.CallTypeKey, callType)