register IPs service using the correct function

This commit is contained in:
ionutboangiu
2025-05-30 18:03:08 +03:00
committed by Dan Christian Bogos
parent 9ee93ed879
commit 4ef2182b67

View File

@@ -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
}