This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/master by this push:
new de6fcfbcc fix(proto): fix getting attributes issue (#1968)
de6fcfbcc is described below
commit de6fcfbccd909aa75edb23025687eb6271110cba
Author: Xuewei Niu <[email protected]>
AuthorDate: Tue Jul 12 13:06:49 2022 +0800
fix(proto): fix getting attributes issue (#1968)
RPCInvocation::GetAttributeWithDefaultValue() has a typo which couldn't
get attributes correctly, this PR fixes that issue.
Signed-off-by: Xuewei Niu <[email protected]>
---
protocol/invocation/rpcinvocation.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/protocol/invocation/rpcinvocation.go
b/protocol/invocation/rpcinvocation.go
index c477c7d6a..5c821e676 100644
--- a/protocol/invocation/rpcinvocation.go
+++ b/protocol/invocation/rpcinvocation.go
@@ -234,7 +234,7 @@ func (r *RPCInvocation) GetAttributeWithDefaultValue(key
string, defaultValue in
if r.attributes == nil {
return defaultValue
}
- if value, ok := r.attachments[key]; ok {
+ if value, ok := r.attributes[key]; ok {
return value
}
return defaultValue