From 8057d415386dd51cb540bf0420a015bd9aee53c5 Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Fri, 24 Nov 2023 13:02:03 +0200 Subject: [PATCH] fix force immediately to also compact --- lib/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 {