Skip to content
Snippets Groups Projects
Commit 3b51b992 authored by cvictory's avatar cvictory
Browse files

add lock

parent 2e62486b
No related branches found
No related tags found
No related merge requests found
...@@ -157,6 +157,8 @@ func (r *RPCInvocation) Invoker() protocol.Invoker { ...@@ -157,6 +157,8 @@ func (r *RPCInvocation) Invoker() protocol.Invoker {
// nolint // nolint
func (r *RPCInvocation) SetInvoker(invoker protocol.Invoker) { func (r *RPCInvocation) SetInvoker(invoker protocol.Invoker) {
r.lock.Lock()
defer r.lock.Unlock()
r.invoker = invoker r.invoker = invoker
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment