From 9e795d795cda99cc8495ab365d5d98d402810dd3 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 20 Aug 2024 11:10:28 +0200 Subject: [PATCH] id on peer --- dbs/mongo/mongo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbs/mongo/mongo.go b/dbs/mongo/mongo.go index 77ed4d7..c951ec6 100644 --- a/dbs/mongo/mongo.go +++ b/dbs/mongo/mongo.go @@ -69,7 +69,7 @@ func (m *MongoDB) createClient(MongoURL string) error { isConnected = false return errors.New("Mongodb connect " + MongoURL + ":" + err.Error()) } - MngoCtx, cancel = context.WithTimeout(context.Background(), 10*time.Second) + MngoCtx, cancel = context.WithTimeout(context.Background(), 60*time.Second) defer cancel() if err = mngoClient.Ping(MngoCtx, nil); err != nil {