fix random selector
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
0d93b2c31c
commit
8d6eb34aee
@ -22,7 +22,7 @@ func (r *random) Select(routes []string, opts ...selector.SelectOption) (selecto
|
|||||||
}
|
}
|
||||||
|
|
||||||
// select a random route from the slice
|
// select a random route from the slice
|
||||||
return routes[rand.Intn(len(routes)-1)]
|
return routes[rand.Intn(len(routes))]
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user