accidentally disconnected from database after joining

This commit is contained in:
lyx0 2021-10-28 17:55:12 +02:00
parent 7a7c3680fd
commit e494d817f8

View file

@ -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{})