Skip to content

Commit 82214fb

Browse files
deprecation of keepalive option
1 parent 6555f04 commit 82214fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const config = {
3030
// http://mongodb.github.io/node-mongodb-native/3.1/api/MongoClient.html
3131
options: {
3232
connectTimeoutMS: 15000,
33-
// keepAlive: true, // keepAlive is not supported in later versions of mongodb
33+
// 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
3434
noDelay: true,
3535
useNewUrlParser: true,
3636
},

0 commit comments

Comments
 (0)