id on peer

This commit is contained in:
mr 2024-08-20 11:10:28 +02:00
parent d848585b7c
commit 9e795d795c

View File

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