mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 16:18:44 +05:00
update rpcclient lib (fixes #4413)
This commit is contained in:
committed by
Dan Christian Bogos
parent
656911e4aa
commit
d507e29a8f
@@ -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.IsConnectionErr(err) && !rpcclient.IsServiceErr(err) {
|
||||
if err = conn.Call(context.TODO(), method, arg, reply); !rpcclient.ShouldFailover(err) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user