redefine guild in loop scope

This commit is contained in:
Dot-Rar 2020-05-29 17:04:43 +01:00
parent 04f3def6a0
commit 3af6eed0c0

View File

@ -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,