Skip to content
Snippets Groups Projects
Commit 2d2e3199 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

fix: show dumping process for blocks

parent e2d90c6a
No related branches found
No related tags found
No related merge requests found
Pipeline #17403 waiting for manual action
......@@ -26,8 +26,12 @@ export async function addLegacyBlocks(server: Server, wwDAL: WotWizardDAL) {
return f;
});
legacies.forEach((l) => blocksSaved.push(l));
if (i % 25000 === 0) {
logger.debug("Saving 25 blocks... (%s yet stored)", i);
if (i % CommonConstants.BLOCKS_IN_MEMORY_MAX === 0) {
logger.debug(
"Saving %s blocks... (%s yet stored)",
CommonConstants.BLOCKS_IN_MEMORY_MAX,
i
);
await wwDAL.blockDao.insertBatch(blocksSaved);
blocksSaved = [];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment