Skip to content

Commit f0867f7

Browse files
popenkomaksimmbroadst
authored andcommitted
docs: updating sdam-monitoring's code example
url param was missing in MongoClient constructor
1 parent 0e6153b commit f0867f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/content/reference/management/sdam-monitoring.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The following example demonstrates how to connect to a replica set and monitor a
3838
const MongoClient = require('mongodb').MongoClient;
3939

4040
const url = 'mongodb://localhost:31000,localhost:31001/?replicaSet=rs';
41-
const client = new MongoClient();
41+
const client = new MongoClient(url);
4242

4343
client.on('serverDescriptionChanged', function(event) {
4444
console.log('received serverDescriptionChanged');

0 commit comments

Comments
 (0)