backend: fix a pointer reuse
This commit is contained in:
parent
cefed3bf23
commit
20f2597248
@ -200,7 +200,8 @@ func genAll() {
|
|||||||
log.Println("Team retrieval error: ", err)
|
log.Println("Team retrieval error: ", err)
|
||||||
} else {
|
} else {
|
||||||
for _, team := range teams {
|
for _, team := range teams {
|
||||||
genTeamQueue <- &team
|
myteam := team // team is reused, we need to create a new variable here to store the value
|
||||||
|
genTeamQueue <- &myteam
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user