Commit Graph

18 Commits

Author SHA1 Message Date
ionutboangiu
cb7ea790de Update rpcclient library to latest version
Replace all instances of rpcclient.ClientConnector with birpc.ClientConnector.

Pass context, maxReconnectInterval, delayFunc and birpcClient to rpcclient
constructors.

Remove redundant time.Duration conversions (e.g. time.Duration(1*time.Second)
now becomes time.Second.

Add context where needed (context.Background() for tests, context.TODO()
for places where it should be passed from somewhere else).

Implement that functionality of the SessionSv1.Sleep call, in sessions/sessions
instead of apier/v1.

Make changes in utils/server.go (replacing the old rpc2 library with github.com/cgrates/birpc).

Change the way we register birpc methods for sessions in services, using a helper function
defined in engine/libengine.go.
2023-05-03 10:02:15 +02:00
ionutboangiu
0473e66555 Revise config reload tests in services
A time.Sleep() of 10 milliseconds has been added after starting the services in order to wait for the goroutine that handles reloads to get instantiated. This solves the occasional deadlock that happens when a reload signal is sent to a subsystem that requires storDB before sending it to storDB itself. One consequence of waiting is that where we previously expected the DataDB service to not be running yet, now it has enough time.
2023-03-28 17:59:32 +02:00
Trial97
db3bf9f40d Updated build tags 2021-08-30 17:55:51 +03:00
Trial97
d60ac504b1 Updated ConfigSv1.ReloadSections to ConfigSv1.ReloadConfigFromJSON 2020-01-09 08:05:20 +02:00
Trial97
21285b4bbc Removed unused connmanager service 2020-01-06 17:43:54 +02:00
TeoV
7b72c943a0 Add connections from remote and replicate throuh ConnManager 2020-01-06 09:27:34 -05:00
TeoV
28868e8852 Add connections from Agents through ConnManager 2019-12-12 08:54:42 +02:00
TeoV
95477bcabc Add conncetions from Sessions and CDRs through ConnManager 2019-12-12 08:54:42 +02:00
TeoV
27789c4d36 Add connection from StatS to Threshold through ConnManager 2019-12-12 08:52:49 +02:00
TeoV
4a201c6f9e Remove prefix when add items in internalDB 2019-12-04 07:29:32 -05:00
Trial97
f17b4140c3 Added DB reload for LoaderS 2019-10-28 12:17:15 +01:00
Trial97
badd7237cc Added DB reload for StatS 2019-10-28 12:17:15 +01:00
Trial97
2fab251799 Added DB reload for ThresholdS 2019-10-28 12:17:15 +01:00
Trial97
42a6396bcb Updated Services tests 2019-10-28 12:17:15 +01:00
Trial97
f76caab4c7 Updated Stat Service 2019-10-28 12:17:15 +01:00
Trial97
758074c4de Added CacheS to ServiceManager 2019-10-28 12:17:15 +01:00
Trial97
1cffc4ca90 Updated services tests 2019-10-28 12:17:15 +01:00
Trial97
4763133501 Added StatS as service in ServiceManager 2019-09-17 18:07:53 +02:00