Skip to content

Commit 914af69

Browse files
[bug] Remove priority decrease for PDF, XPS, and DJVU conversions (browser opening)
1 parent c02a0fe commit 914af69

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

DocService/sources/canvasservice.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -538,15 +538,7 @@ function* commandOpen(ctx, conn, cmd, outputData, opt_upsertRes, opt_bIsRestore)
538538
dataQueue.setCtx(ctx);
539539
dataQueue.setCmd(cmd);
540540
dataQueue.setToFile('Editor.bin');
541-
var priority = constants.QUEUE_PRIORITY_HIGH;
542-
var formatIn = formatChecker.getFormatFromString(cmd.getFormat());
543-
//decrease pdf, djvu, xps convert priority becase long open time
544-
if (constants.AVS_OFFICESTUDIO_FILE_CROSSPLATFORM_PDF === formatIn ||
545-
constants.AVS_OFFICESTUDIO_FILE_CROSSPLATFORM_DJVU === formatIn ||
546-
constants.AVS_OFFICESTUDIO_FILE_CROSSPLATFORM_XPS === formatIn) {
547-
priority = constants.QUEUE_PRIORITY_LOW;
548-
}
549-
yield* docsCoServer.addTask(dataQueue, priority);
541+
yield* docsCoServer.addTask(dataQueue, constants.QUEUE_PRIORITY_HIGH);
550542
} else {
551543
yield* commandOpenFillOutput(ctx, conn, cmd, outputData, opt_bIsRestore);
552544
}

0 commit comments

Comments
 (0)