diff --git a/lib/index.js b/lib/index.js index 3bbb840..bf57b87 100644 --- a/lib/index.js +++ b/lib/index.js @@ -229,8 +229,10 @@ function initGC(peer, config) { * @param {CB} cb */ function forceImmediately(cb) { - debug('Force clean & compact immediately') - cleanup(cb) + debug('Force clean and compact immediately') + cleanup(() => { + compact(cb) + }) } return {