Closed 9547 closed 3 years ago
Thanks your contribution. I prefer to use NewClient.
conn, err := net.DialTimeout("tcp", "localhost:8080", time.Minute)
if err != nil {
return err
}
c = rpc.NewClient(conn)
Thanks your contribution. I prefer to use NewClient.
conn, err := net.DialTimeout("tcp", "localhost:8080", time.Minute) if err != nil { return err } c = rpc.NewClient(conn)
Thanks for your advice, fixed.
Thank you
Add RPC timeout