mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
register IPs service using the correct function
This commit is contained in:
committed by
Dan Christian Bogos
parent
9ee93ed879
commit
4ef2182b67
@@ -75,13 +75,11 @@ func (s *IPService) Start(shutdown *utils.SyncedChan, registry *servmanager.Serv
|
||||
defer s.mu.Unlock()
|
||||
s.ips = ips.NewIPService(dbs.DataManager(), s.cfg, fs.FilterS(), cms.ConnManager())
|
||||
s.ips.StartLoop(context.TODO())
|
||||
srv, err := engine.NewServiceWithName(s.ips, utils.IPsV1, true)
|
||||
srv, err := engine.NewServiceWithPing(s.ips, utils.IPsV1, utils.V1Prfx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, svc := range srv {
|
||||
cl.RpcRegister(svc)
|
||||
}
|
||||
cl.RpcRegister(srv)
|
||||
cms.AddInternalConn(utils.IPs, srv)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user