client: fix clusterError typo in README
It helps users to use client better.release-2.2
parent
fefb273389
commit
5eed141d54
|
@ -74,7 +74,7 @@ if err != nil {
|
||||||
// ctx is canceled by another routine
|
// ctx is canceled by another routine
|
||||||
} else if err == context.DeadlineExceeded {
|
} else if err == context.DeadlineExceeded {
|
||||||
// ctx is attached with a deadline and it exceeded
|
// ctx is attached with a deadline and it exceeded
|
||||||
} else if cerr, ok := err.(ClusterError); ok {
|
} else if cerr, ok := err.(*client.ClusterError); ok {
|
||||||
// process (cerr.Errors)
|
// process (cerr.Errors)
|
||||||
} else {
|
} else {
|
||||||
// bad cluster endpoints, which are not etcd servers
|
// bad cluster endpoints, which are not etcd servers
|
||||||
|
|
Loading…
Reference in New Issue