From 6505b5a53260126bd187a43c2459365958092672 Mon Sep 17 00:00:00 2001 From: Jacek Kalasz Date: Tue, 26 Oct 2021 01:45:08 +0200 Subject: [PATCH] =?UTF-8?q?fix=20mongodb=20unsupported=20attributes=20erro?= =?UTF-8?q?r=20Signed-off-by:=20Jacek=20Ka=C5=82asz=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react-express-mongodb/backend/db/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/react-express-mongodb/backend/db/index.js b/react-express-mongodb/backend/db/index.js index 6598305..9f5213f 100644 --- a/react-express-mongodb/backend/db/index.js +++ b/react-express-mongodb/backend/db/index.js @@ -7,11 +7,6 @@ exports.connect = (app) => { const options = { useNewUrlParser: true, autoIndex: false, // Don't build indexes - reconnectTries: 30, // Retry up to 30 times - reconnectInterval: 500, // Reconnect every 500ms - poolSize: 10, // Maintain up to 10 socket connections - // If not connected, return errors immediately rather than waiting for reconnect - bufferMaxEntries: 0, }; const connectWithRetry = () => {