Skip to content

Commit

Permalink
fix(proto): fix getting attributes issue (#1968)
Browse files Browse the repository at this point in the history
RPCInvocation::GetAttributeWithDefaultValue() has a typo which couldn't
get attributes correctly, this PR fixes that issue.

Signed-off-by: Xuewei Niu <justxuewei@apache.org>
  • Loading branch information
justxuewei committed Jul 12, 2022
1 parent 7b99da6 commit de6fcfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/invocation/rpcinvocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de6fcfb

Please sign in to comment.