Skip to content

Commit

Permalink
fix(cmd/xliff): async batching
Browse files Browse the repository at this point in the history
  • Loading branch information
moki committed Aug 15, 2023
1 parent 90bbe12 commit 5fc6bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/xliff/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {join, dirname, extname} from 'path';

import markdownTranslation, {ExtractParameters} from '@diplodoc/markdown-translation';
import {Arguments, Argv} from 'yargs';
import {eachLimit} from 'async';
import {eachLimit, asyncify} from 'async';

import {ArgvService} from '../../services';
import {glob, logger} from '../../utils';
Expand Down Expand Up @@ -99,7 +99,7 @@ async function handler(args: Arguments<any>) {
try {
logger.info(input, 'starting xliff and skeleton generation pipeline');

await eachLimit(found, MAX_CONCURRENCY, configuredPipeline);
await eachLimit(found, MAX_CONCURRENCY, asyncify(configuredPipeline));

logger.info(input, 'finished xliff and skeleton generation pipeline');
} catch (err) {
Expand Down

0 comments on commit 5fc6bd2

Please sign in to comment.