How do I get last connection error when dialling gRPC server?

后端 未结 0 849
醉酒成梦
醉酒成梦 2021-01-15 23:07

I am having the following code:

dialCtx, cancel := context.WithTimeout(ctx, 120*time.Second)
defer cancel()

conn, err := grpc.DialContext(dialCtx, address,
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题