Wasn't actually copying the tiers

http://stackoverflow.com/questions/27055626/concisely-deep-copy-a-slice
This commit is contained in:
Matt Joiner 2014-11-21 00:54:19 -06:00
parent 97074dc060
commit 1527321c71
1 changed files with 1 additions and 1 deletions

View File

@ -1277,7 +1277,7 @@ func shuffleTier(tier []tracker.Client) {
func copyTrackers(base [][]tracker.Client) (copy [][]tracker.Client) {
for _, tier := range base {
copy = append(copy, tier)
copy = append(copy, append([]tracker.Client{}, tier...))
}
return
}