aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-15 11:52:21 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-15 11:52:21 +0200
commit48ca185105988aba0626850bf133ba364edd835e (patch)
treee9fbb1b327212845d4689fd650366aeecbc35cd5 /main.go
parentdcc260c4b0c8733fcc63322bcdd74f4540fb5a95 (diff)
perf(redis): use the same client in all xp goroutines
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index bbe995e..caede84 100644
--- a/main.go
+++ b/main.go
@@ -51,6 +51,8 @@ func main() {
AfterInit: afterInit,
}
bot.Start()
+
+ xp.CloseRedisClient()
}
func afterInit(dg *discordgo.Session) {