mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Using constants instead of bare strings for Call function in cgr-tester
This commit is contained in:
committed by
Dan Christian Bogos
parent
0ff11682af
commit
df2fff3952
@@ -135,7 +135,7 @@ func durRemoteRater(cd *engine.CallDescriptorWithArgDispatcher) (time.Duration,
|
||||
for i := 0; i < *runs; i++ {
|
||||
go func() {
|
||||
sem <- 1
|
||||
client.Call("Responder.GetCost", cd, &result)
|
||||
client.Call(utils.ResponderGetCost, cd, &result)
|
||||
<-sem
|
||||
finish <- 1
|
||||
// divCall = client.Go("Responder.GetCost", cd, &result, nil)
|
||||
@@ -147,7 +147,7 @@ func durRemoteRater(cd *engine.CallDescriptorWithArgDispatcher) (time.Duration,
|
||||
// <-divCall.Done
|
||||
} else {
|
||||
for j := 0; j < *runs; j++ {
|
||||
client.Call("Responder.GetCost", cd, &result)
|
||||
client.Call(utils.ResponderGetCost, cd, &result)
|
||||
}
|
||||
}
|
||||
log.Printf("Result:%s\n", utils.ToJSON(result))
|
||||
|
||||
Reference in New Issue
Block a user