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