mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #4467 from gyuho/f00
etcd-tester: fix wrong error checking
This commit is contained in:
commit
e9c0d5424a
@ -235,7 +235,7 @@ func (c *cluster) getKVHash() (map[string]int64, error) {
|
|||||||
kvc := pb.NewKVClient(conn)
|
kvc := pb.NewKVClient(conn)
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||||
resp, err := kvc.Hash(ctx, &pb.HashRequest{})
|
resp, err := kvc.Hash(ctx, &pb.HashRequest{})
|
||||||
if resp != nil && err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
cancel()
|
cancel()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user