|
@@ -276,7 +276,8 @@ func (d *discovery) waitNodes(nodes client.Nodes, size int, index uint64) (clien
|
|
|
if len(nodes) > size {
|
|
if len(nodes) > size {
|
|
|
nodes = 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))
|
|
all := make(client.Nodes, len(nodes))
|
|
|
copy(all, nodes)
|
|
copy(all, nodes)
|
|
|
for _, n := range all {
|
|
for _, n := range all {
|