mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
20 lines
252 B
Go
20 lines
252 B
Go
package main
|
|
|
|
import (
|
|
"net/rpc"
|
|
"fmt"
|
|
)
|
|
|
|
|
|
func main(){
|
|
client, _ := rpc.DialHTTPPath("tcp", "localhost:2000", "/rpc")
|
|
var reply string
|
|
i:= 0
|
|
for ; i < 5 * 10e4; i++ {
|
|
client.Call("Responder.Get", "test", &reply)
|
|
}
|
|
fmt.Println(i, reply)
|
|
}
|
|
|
|
|