id on peer
This commit is contained in:
parent
d848585b7c
commit
9e795d795c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user