mirror of
https://github.com/coredns/coredns.git
synced 2026-02-17 12:43:09 -05:00
chore: bump Go version to 1.26.0 (#7856)
This commit is contained in:
@@ -54,7 +54,8 @@ func (r *roundRobin) List(p []*Proxy) []*Proxy {
|
||||
poolLen := uint32(len(p)) // #nosec G115 -- pool length is small
|
||||
i := atomic.AddUint32(&r.robin, 1) % poolLen
|
||||
|
||||
robin := []*Proxy{p[i]}
|
||||
robin := make([]*Proxy, 0, len(p))
|
||||
robin = append(robin, p[i])
|
||||
robin = append(robin, p[:i]...)
|
||||
robin = append(robin, p[i+1:]...)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user