[misc] PackWorker: drop workaround for db.close in mongojs@1

REF: 3ed3932ee837920e95661b0308dee012f40a71dd
This commit is contained in:
Jakob Ackermann 2020-09-10 11:10:59 +01:00
parent 0bfe84db47
commit e74af0bee6

View file

@ -78,18 +78,6 @@ logger.log(
`checking for updates, limit=${LIMIT}, delay=${DOCUMENT_PACK_DELAY}, timeout=${TIMEOUT}`
)
// work around for https://github.com/mafintosh/mongojs/issues/224
db.close = function (callback) {
return this._getServer(function (err, server) {
if (err != null) {
return callback(err)
}
server = server.destroy != null ? server : server.topology
server.destroy(true, true)
return callback()
})
}
const finish = function () {
if (shutDownTimer != null) {
logger.log('cancelling timeout')