Order nodes by random (#1197)
This commit is contained in:
parent
ba5097c13d
commit
c46864449d
@ -63,7 +63,9 @@ func (cache *overlaycache) queryFilteredNodes(ctx context.Context, excluded []st
|
|||||||
audit_uptime_ratio, audit_count, audit_success_count, uptime_count,
|
audit_uptime_ratio, audit_count, audit_success_count, uptime_count,
|
||||||
uptime_success_count
|
uptime_success_count
|
||||||
FROM overlay_cache_nodes
|
FROM overlay_cache_nodes
|
||||||
`+safeQuery+safeExcludeNodes+` LIMIT ?`), args...)
|
`+safeQuery+safeExcludeNodes+`
|
||||||
|
ORDER BY RANDOM()
|
||||||
|
LIMIT ?`), args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user