Merge branch 'TheBeastLT:master' into master

This commit is contained in:
Gabisonfire
2024-01-22 09:24:25 -05:00
committed by GitHub
3 changed files with 7 additions and 5 deletions

View File

@@ -29,7 +29,8 @@ function initiateRemoteCache() {
uri: MONGO_URI,
options: {
collection: 'torrentio_addon_collection',
socketTimeoutMS: 120000,
socketTimeoutMS: 30000,
poolSize: 150,
useNewUrlParser: true,
useUnifiedTopology: false,
ttl: STREAM_EMPTY_TTL

View File

@@ -3,7 +3,7 @@ const Op = Sequelize.Op;
const DATABASE_URI = process.env.DATABASE_URI;
const database = new Sequelize(DATABASE_URI, { logging: false });
const database = new Sequelize(DATABASE_URI, { logging: false, pool: { max: 50 } });
const Torrent = database.define('torrent',
{