diff --git a/protocol/invocation/rpcinvocation.go b/protocol/invocation/rpcinvocation.go index c477c7d6a1..5c821e6768 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