flycash commented on a change in pull request #1045:
URL: https://github.com/apache/dubbo-go/pull/1045#discussion_r573584025
##########
File path: protocol/dubbo/dubbo_invoker.go
##########
@@ -101,8 +101,12 @@ func (di *DubboInvoker) Invoke(ctx context.Context,
invocation protocol.Invocati
return &result
}
- di.AddInvokerTimes(1)
- defer di.AddInvokerTimes(-1)
+ client := di.getClient()
+ if client == nil {
+ result.Err = protocol.ErrClientClosed
+ logger.Debugf("result.Err: %v", result.Err)
Review comment:
How about using Warn? I think this only happens in some abnormal cases.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]