Skip to content

Commit

Permalink
Remove redundunt defers for etcd backend
Browse files Browse the repository at this point in the history
  • Loading branch information
okushchenko committed Nov 29, 2017
1 parent a1618d5 commit cc62892
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion backends/etcdv3/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ func (c *Client) WatchPrefix(prefix string, keys []string, waitIndex uint64, sto
}()

rch := client.Watch(ctx, prefix, clientv3.WithPrefix())
defer client.Close()

for wresp := range rch {
for _, ev := range wresp.Events {
Expand Down

0 comments on commit cc62892

Please sign in to comment.