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
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +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
c18a0c83c4 Added test for DataManagerService 2019-10-28 12:17:15 +01:00
Trial97
42a6396bcb Updated Services tests 2019-10-28 12:17:15 +01:00
Trial97
8349748441 Updated how FilterS is passed to service 2019-10-28 12:17:15 +01:00
Trial97
82ee42d20c Updated Attribute 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
da81afcdea Added ChargerS as service in ServiceManager 2019-09-17 18:07:53 +02:00
Trial97
e7a3d88fe5 Added configuration reload tests for AttributeS 2019-09-17 18:07:53 +02:00