redefine guild in loop scope
This commit is contained in:
parent
04f3def6a0
commit
3af6eed0c0
@ -34,6 +34,8 @@ func GetGuilds(ctx *gin.Context) {
|
||||
var lock sync.Mutex
|
||||
|
||||
for _, g := range guilds {
|
||||
g := g
|
||||
|
||||
group.Go(func() error {
|
||||
fakeGuild := guild.Guild{
|
||||
Id: g.GuildId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user