perf(redis): use the same client in all xp goroutines

This commit is contained in:
Anhgelus Morhtuuzh 2024-04-15 11:52:21 +02:00
parent dcc260c4b0
commit 48ca185105
No known key found for this signature in database
GPG key ID: CF4550297832A29F
3 changed files with 38 additions and 14 deletions

View file

@ -51,6 +51,8 @@ func main() {
AfterInit: afterInit,
}
bot.Start()
xp.CloseRedisClient()
}
func afterInit(dg *discordgo.Session) {