Add ERs APIs to dispatchers

This commit is contained in:
ionutboangiu
2024-04-03 18:41:15 +03:00
committed by Dan Christian Bogos
parent e0ae593949
commit e56191e390
3 changed files with 105 additions and 1 deletions

View File

@@ -201,6 +201,13 @@ func newDispatcherServiceMap(val *dispatchers.DispatcherService) (engine.IntServ
}
srvMap[srv.Name] = srv
srv, err = birpc.NewService(v1.NewDispatcherErSv1(val),
utils.ErSv1, true)
if err != nil {
return nil, err
}
srvMap[srv.Name] = srv
srv, err = birpc.NewService(v1.NewDispatcherGuardianSv1(val),
utils.GuardianSv1, true)
if err != nil {