aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar coredns[bot] <bot@bot.coredns.io> 2021-11-15 10:33:24 +0000
committerGravatar coredns[bot] <bot@bot.coredns.io> 2021-11-15 10:33:24 +0000
commit92b0227592cd8ae712f7315822afd781920a88b4 (patch)
tree68ad008b77a8f1197ed2dc55f1cc98cfd41e3799
parent4c0eacb6574786c8b3db1e5f068ebce96f7545e1 (diff)
downloadcoredns-92b0227592cd8ae712f7315822afd781920a88b4.tar.gz
coredns-92b0227592cd8ae712f7315822afd781920a88b4.tar.zst
coredns-92b0227592cd8ae712f7315822afd781920a88b4.zip
auto go fmt
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
-rw-r--r--plugin/loadbalance/loadbalance.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/loadbalance/loadbalance.go b/plugin/loadbalance/loadbalance.go
index 0d67d3e4a..966121d6b 100644
--- a/plugin/loadbalance/loadbalance.go
+++ b/plugin/loadbalance/loadbalance.go
@@ -62,7 +62,7 @@ func roundRobinShuffle(records []dns.RR) {
}
default:
for j := 0; j < l; j++ {
- p := j + (int(dns.Id()) % (l-j))
+ p := j + (int(dns.Id()) % (l - j))
if j == p {
continue
}