From bb42ba5f4eb30a425fb628631e89f2f56b6136c7 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Tue, 2 May 2017 09:45:06 -0700 Subject: [PATCH] Documentation/upgrades: revert KeepAlive interface change Signed-off-by: Gyu-Ho Lee --- Documentation/upgrades/upgrade_3_2.md | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/Documentation/upgrades/upgrade_3_2.md b/Documentation/upgrades/upgrade_3_2.md index 2b1f77d6c..3bf30e6b4 100644 --- a/Documentation/upgrades/upgrade_3_2.md +++ b/Documentation/upgrades/upgrade_3_2.md @@ -30,32 +30,6 @@ resp.TTL == -1 err == nil ``` -Previously, `clientv3.Lease.KeepAlive` interface does not return error (see [#7488](https://github.com/coreos/etcd/issues/7488) and [#7732](https://github.com/coreos/etcd/pull/7732)). - -Before - -```go -// clientv3 -type Lease interface { - KeepAlive(ctx context.Context, id LeaseID) (<-chan *LeaseKeepAliveResponse, error) - KeepAliveOnce(ctx context.Context, id LeaseID) (*LeaseKeepAliveResponse, error) -} -``` - -After - -```go -// clientv3 -type Lease interface { - KeepAlive(ctx context.Context, id LeaseID) LeaseKeepAliveChan - KeepAliveOnce(ctx context.Context, id LeaseID) LeaseKeepAliveResponse -} - -// check error -for ka := range <-LeaseKeepAliveChan { ka.Err } -LeaseKeepAliveResponse.Err -``` - ### Server upgrade checklists #### Upgrade requirements