hysuuuu commented on code in PR #3697:
URL: https://github.com/apache/dubbo-go/pull/3697#discussion_r3841104062


##########
cluster/cluster/failback/cluster_invoker.go:
##########
@@ -31,6 +31,8 @@ import (
        "github.com/cenkalti/backoff/v4"
 
        "github.com/dubbogo/gost/log/logger"
+
+       perrors "github.com/pkg/errors"

Review Comment:
   Updated. Thanks for the feedback.



##########
cluster/cluster/failback/cluster_invoker.go:
##########
@@ -190,6 +192,9 @@ func (invoker *failbackClusterInvoker) Invoke(ctx 
context.Context, invocation pr
        invoked := make([]protocolbase.Invoker, 0, len(invokers))
        ivk := invoker.DoSelect(loadBalance, invocation, invokers, invoked)
        // DO INVOKE
+       if ivk == nil {
+               return &result.RPCResult{Err: perrors.New("invoker is nil")}

Review Comment:
   Updated. Thanks for the feedback.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to