From: Matt Joiner Date: Fri, 21 Nov 2014 06:54:19 +0000 (-0600) Subject: Wasn't actually copying the tiers X-Git-Tag: v1.0.0~1480 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1527321c7198d67953ba25303aa2ef6f6174a38b;p=btrtrc.git Wasn't actually copying the tiers http://stackoverflow.com/questions/27055626/concisely-deep-copy-a-slice --- diff --git a/client.go b/client.go index 36f840fa..d2ebfbcd 100644 --- a/client.go +++ b/client.go @@ -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 }