From 6b6013fad563f721e7f93de239414abe9d6e081f Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Wed, 29 Nov 2017 14:14:15 -0800 Subject: [PATCH] clientv3/doc: update dial-timeout error handling with new gRPC Signed-off-by: Gyu-Ho Lee --- clientv3/doc.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clientv3/doc.go b/clientv3/doc.go index e40c57d6f..7ecd81146 100644 --- a/clientv3/doc.go +++ b/clientv3/doc.go @@ -21,6 +21,13 @@ // Endpoints: []string{"http://254.0.0.1:12345"}, // DialTimeout: 2 * time.Second // }) +// +// // etcd clientv3 >= v3.2.10, grpc/grpc-go >= v1.7.3 +// if err == context.DeadlineExceeded { +// // handle errors +// } +// +// // etcd clientv3 <= v3.2.9, grpc/grpc-go <= v1.2.1 // if err == grpc.ErrClientConnTimeout { // // handle errors // }