Skip to content

Commit

Permalink
Merge pull request #1026 from lin-jianjun/patch-2
Browse files Browse the repository at this point in the history
Update dubbo_invoker.go
  • Loading branch information
AlexStocks authored Feb 22, 2021
2 parents 5c76040 + befd3e5 commit 24e0d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/dubbo/dubbo_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (di *DubboInvoker) Invoke(ctx context.Context, invocation protocol.Invocati
err error
result protocol.RPCResult
)
if di.reqNum < 0 {
if atomic.LoadInt64(di.reqNum) < 0 {
// Generally, the case will not happen, because the invoker has been removed
// from the invoker list before destroy,so no new request will enter the destroyed invoker
logger.Warnf("this dubboInvoker is destroyed")
Expand Down

0 comments on commit 24e0d8c

Please sign in to comment.