fix force immediately to also compact

This commit is contained in:
Andre Staltz 2023-11-24 13:02:03 +02:00
parent 97e6a10783
commit 8057d41538
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 4 additions and 2 deletions

View File

@ -229,8 +229,10 @@ function initGC(peer, config) {
* @param {CB<void>} cb
*/
function forceImmediately(cb) {
debug('Force clean & compact immediately')
cleanup(cb)
debug('Force clean and compact immediately')
cleanup(() => {
compact(cb)
})
}
return {