mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 02:26:26 +05:00
Removed unused InternalTtl
This commit is contained in:
committed by
Dan Christian Bogos
parent
21c880e1da
commit
bbc34b1f77
@@ -1334,7 +1334,7 @@ func (dm *DataManager) GetDispatcherHost(tenant, id string, cacheRead, cacheWrit
|
||||
cfg.TlsCfg().ClientCerificate, cfg.TlsCfg().CaCertificate,
|
||||
cfg.GeneralCfg().ConnectAttempts, cfg.GeneralCfg().Reconnects,
|
||||
cfg.GeneralCfg().ConnectTimeout, cfg.GeneralCfg().ReplyTimeout,
|
||||
dH.Conns, IntRPC.GetInternalChanel(), cfg.GeneralCfg().InternalTtl, false); err != nil {
|
||||
dH.Conns, IntRPC.GetInternalChanel(), false); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
Cache.Set(utils.CacheDispatcherHosts, tntID, dH, nil,
|
||||
|
||||
@@ -95,7 +95,7 @@ func (fS *FilterS) connStatS(statSChan chan rpcclient.RpcClientConnection) (err
|
||||
fS.cfg.TlsCfg().CaCertificate, fS.cfg.GeneralCfg().ConnectAttempts,
|
||||
fS.cfg.GeneralCfg().Reconnects, fS.cfg.GeneralCfg().ConnectTimeout,
|
||||
fS.cfg.GeneralCfg().ReplyTimeout, fS.cfg.FilterSCfg().StatSConns,
|
||||
statSChan, fS.cfg.GeneralCfg().InternalTtl, true)
|
||||
statSChan, true)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ func (fS *FilterS) connResourceS(resSChan chan rpcclient.RpcClientConnection) (e
|
||||
fS.cfg.TlsCfg().CaCertificate, fS.cfg.GeneralCfg().ConnectAttempts,
|
||||
fS.cfg.GeneralCfg().Reconnects, fS.cfg.GeneralCfg().ConnectTimeout,
|
||||
fS.cfg.GeneralCfg().ReplyTimeout, fS.cfg.FilterSCfg().ResourceSConns,
|
||||
resSChan, fS.cfg.GeneralCfg().InternalTtl, true)
|
||||
resSChan, true)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
|
||||
func NewRPCPool(dispatchStrategy string, keyPath, certPath, caPath string, connAttempts, reconnects int,
|
||||
connectTimeout, replyTimeout time.Duration, rpcConnCfgs []*config.RemoteHost,
|
||||
internalConnChan chan rpcclient.RpcClientConnection, ttl time.Duration, lazyConnect bool) (*rpcclient.RpcClientPool, error) {
|
||||
internalConnChan chan rpcclient.RpcClientConnection, lazyConnect bool) (*rpcclient.RpcClientPool, error) {
|
||||
var rpcClient *rpcclient.RpcClient
|
||||
var err error
|
||||
rpcPool := rpcclient.NewRpcClientPool(dispatchStrategy, replyTimeout)
|
||||
|
||||
Reference in New Issue
Block a user