From e494d817f833f53c750590fd2a07dfce72d165e5 Mon Sep 17 00:00:00 2001 From: lyx0 Date: Thu, 28 Oct 2021 17:55:12 +0200 Subject: [PATCH] accidentally disconnected from database after joining --- pkg/db/initialjoin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/db/initialjoin.go b/pkg/db/initialjoin.go index 34984fb..aa85336 100644 --- a/pkg/db/initialjoin.go +++ b/pkg/db/initialjoin.go @@ -15,7 +15,7 @@ func InitialJoin(nb *bot.Bot) { ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() - defer nb.MongoClient.Disconnect(ctx) + // defer nb.MongoClient.Disconnect(ctx) cur, currErr := collection.Find(ctx, bson.D{})