mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tools/functional-tester: fix leaky issue by closing conn
This commit is contained in:
parent
c3824b10da
commit
e316678a4d
@ -269,6 +269,7 @@ func setHealthKey(us []string) error {
|
||||
kvc := pb.NewKVClient(conn)
|
||||
_, err = kvc.Put(ctx, &pb.PutRequest{Key: []byte("health"), Value: []byte("good")})
|
||||
cancel()
|
||||
conn.Close()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user