Skip to content

Commit c6eb9d1

Browse files
committed
srv fix
1 parent 9708101 commit c6eb9d1

File tree

1 file changed

+1
-1
lines changed
  • source/includes/fundamentals/code-snippets

1 file changed

+1
-1
lines changed

source/includes/fundamentals/code-snippets/srv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
// Connection URI
14-
const uri = "mongodb+srv://sample-hostname:27017/?poolSize=20&writeConcern=majority"
14+
const uri = "mongodb+srv://sample-hostname/?maxPoolSize=20&w=majority"
1515

1616
func main() {
1717
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)

0 commit comments

Comments
 (0)