mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #1934 from xiang90/fix_test
discovery: fix watch index
This commit is contained in:
commit
c620238257
@ -276,7 +276,8 @@ func (d *discovery) waitNodes(nodes client.Nodes, size int, index uint64) (clien
|
||||
if len(nodes) > size {
|
||||
nodes = nodes[:size]
|
||||
}
|
||||
w := d.c.RecursiveWatch(d.cluster, index)
|
||||
// watch from the next index
|
||||
w := d.c.RecursiveWatch(d.cluster, index+1)
|
||||
all := make(client.Nodes, len(nodes))
|
||||
copy(all, nodes)
|
||||
for _, n := range all {
|
||||
|
Loading…
x
Reference in New Issue
Block a user