We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9708101 commit c6eb9d1Copy full SHA for c6eb9d1
source/includes/fundamentals/code-snippets/srv.go
@@ -11,7 +11,7 @@ import (
11
)
12
13
// Connection URI
14
-const uri = "mongodb+srv://sample-hostname:27017/?poolSize=20&writeConcern=majority"
+const uri = "mongodb+srv://sample-hostname/?maxPoolSize=20&w=majority"
15
16
func main() {
17
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
0 commit comments