mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
accidentally disconnected from database after joining
This commit is contained in:
parent
7a7c3680fd
commit
e494d817f8
|
@ -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{})
|
||||
|
||||
|
|
Loading…
Reference in a new issue