Update rpcclient revising error handling

This commit is contained in:
arberkatellari
2024-06-28 13:34:35 +02:00
committed by Dan Christian Bogos
parent 7a7b928aa0
commit 8269e0b99c
3 changed files with 8 additions and 8 deletions

View File

@@ -191,7 +191,7 @@ func (cM *ConnManager) CallWithConnIDs(connIDs []string, subsHostIDs utils.Strin
if conn, err = cM.getConnWithConfig(connID, newCfg, nil, nil, false); err != nil {
continue
}
if err = conn.Call(context.TODO(), method, arg, reply); !rpcclient.IsNetworkError(err) {
if err = conn.Call(context.TODO(), method, arg, reply); !rpcclient.IsConnectionErr(err) && !rpcclient.IsServiceErr(err) {
return
}
}