Skip to content

Commit

Permalink
deprecation of keepalive option
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithad0703 committed Oct 25, 2024
1 parent 5e51d9f commit ddb8254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const config = {
// http://mongodb.github.io/node-mongodb-native/3.1/api/MongoClient.html
options: {
connectTimeoutMS: 15000,
// keepAlive: true, // keepAlive is not supported in later versions of mongodb
// keepAlive: true, // The keepAlive option was deprecated in the Node.js Driver starting from version 5.3. In version 6.0 of the driver, the keepAlive option is permanently set to true
noDelay: true,
useNewUrlParser: true,
},
Expand Down

0 comments on commit ddb8254

Please sign in to comment.