dashpay / js-dp-services-ctl

Control Dash Platform services using JavaScript and Docker
MIT License
5 stars 6 forks source link

fix: Use new mongo server discovery engine #109

Closed nmarley closed 4 years ago

nmarley commented 4 years ago

This passes option { useUnifiedTopology: true } to the MongoClient constructor, and fixes the DeprecationWarning: current Server Discovery and Monitoring engine seen in tests and Travis.

jawid-h commented 4 years ago

@nmarley Unfortunately it only works with replica set, if we're passing this option without having replica it loops forever and throws stack overflow. That is why we are not using it for the initial connection (where we set up replica).

nmarley commented 4 years ago

Ah ok, thanks for the info. Good to know! 😄

Closing.