Using constants instead of bare strings for Call function in cgr-tester

This commit is contained in:
Trial97
2019-11-15 11:28:45 +02:00
committed by Dan Christian Bogos
parent 0ff11682af
commit df2fff3952

View File

@@ -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))