mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Replaced hardcoded strings with consts in RPC.Call methods
This commit is contained in:
committed by
Dan Christian Bogos
parent
413e47ff37
commit
d1787cb3fa
@@ -20,6 +20,7 @@ package main
|
||||
import (
|
||||
"net/rpc"
|
||||
"testing"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
)
|
||||
|
||||
func BenchmarkRPCGet(b *testing.B) {
|
||||
@@ -28,6 +29,6 @@ func BenchmarkRPCGet(b *testing.B) {
|
||||
b.StartTimer()
|
||||
var reply string
|
||||
for i := 0; i < b.N; i++ {
|
||||
client.Call("Responder.Get", "test", &reply)
|
||||
client.Call(utils.ResponderGet, "test", &reply)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user