mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 08:38:45 +05:00
Update rpcclient revising error handling
This commit is contained in:
committed by
Dan Christian Bogos
parent
7a7b928aa0
commit
8269e0b99c
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user