fix led order randomization, again

This commit is contained in:
neri 2020-02-04 23:25:20 +01:00
parent d75584b4cf
commit 48f99c2f63
1 changed files with 1 additions and 3 deletions

View File

@ -35,8 +35,7 @@ func NewStateAggregator(spaceList map[int][]string) *StateAggregator {
ledList: make(map[int][]*Space), ledList: make(map[int][]*Space),
} }
i := 0 for i, spaceUrls := range spaceList {
for _, spaceUrls := range spaceList {
for _, url := range spaceUrls { for _, url := range spaceUrls {
space := &Space{ space := &Space{
URL: url, URL: url,
@ -45,7 +44,6 @@ func NewStateAggregator(spaceList map[int][]string) *StateAggregator {
go StartPollWorker(space) go StartPollWorker(space)
s.ledList[i] = append(s.ledList[i], space) s.ledList[i] = append(s.ledList[i], space)
} }
i++
} }
return s return s