userJoined accepts auth parameter. Sync with all users at once, instead of one at a time

This commit is contained in:
Kevin Jahns
2017-08-04 16:27:07 +02:00
parent 90b2a895b8
commit d093ef56c8
2 changed files with 27 additions and 40 deletions

View File

@@ -141,7 +141,7 @@ export async function initArrays (t, opts) {
let connOpts
if (i === 0) {
// Only one instance can gc!
dbOpts = Object.assign({ gc: true }, opts.db)
dbOpts = Object.assign({ gc: false }, opts.db)
connOpts = Object.assign({ role: 'master' }, connector)
} else {
dbOpts = Object.assign({ gc: false }, opts.db)