Merge branch 'TheBeastLT:master' into master
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user