mirror of https://codeberg.org/pzp/pzp-gc.git
fix force immediately to also compact
This commit is contained in:
parent
97e6a10783
commit
8057d41538
|
@ -229,8 +229,10 @@ function initGC(peer, config) {
|
||||||
* @param {CB<void>} cb
|
* @param {CB<void>} cb
|
||||||
*/
|
*/
|
||||||
function forceImmediately(cb) {
|
function forceImmediately(cb) {
|
||||||
debug('Force clean & compact immediately')
|
debug('Force clean and compact immediately')
|
||||||
cleanup(cb)
|
cleanup(() => {
|
||||||
|
compact(cb)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue