perf(redis): use the same client in all xp goroutines
This commit is contained in:
parent
dcc260c4b0
commit
48ca185105
3 changed files with 38 additions and 14 deletions
2
main.go
2
main.go
|
@ -51,6 +51,8 @@ func main() {
|
|||
AfterInit: afterInit,
|
||||
}
|
||||
bot.Start()
|
||||
|
||||
xp.CloseRedisClient()
|
||||
}
|
||||
|
||||
func afterInit(dg *discordgo.Session) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue