mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-19 15:28:06 +02:00
fix mongodb unsupported attributes error
Signed-off-by: Jacek Kałasz <jacek@konsternacja.pl>
This commit is contained in:
parent
112937d694
commit
6505b5a532
1 changed files with 0 additions and 5 deletions
5
react-express-mongodb/backend/db/index.js
vendored
5
react-express-mongodb/backend/db/index.js
vendored
|
@ -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 = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue