Commit Graph

7 Commits

Author SHA1 Message Date
ionutboangiu
62619ba3a5 Replace interface{} with any 2023-06-05 10:55:32 +02:00
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
TeoV
a9d7b0698c Connect to dispatcher only when the call is made 2020-05-28 15:34:53 +02:00
Tripon Alexandru-Ionut
5ab62a688d Added test for DispatcherHost.Call 2019-04-11 09:25:00 +02:00
DanB
fccaf489a4 Dispatcher with support for dynamic hosts 2019-04-01 19:14:52 +02:00
Trial97
491be710d5 Added tests for DispatcherProfile methods 2019-02-26 12:24:54 +01:00
DanB
46a919d9f3 Dispatcher.GetConnIDs implementation, profile ReorderFromIndex and Shuffle methods 2019-02-15 15:27:11 +01:00