Skip to content

Commit

Permalink
fix(queue): limitless loading (basically cache) (nsfw-filter#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzevm authored Apr 4, 2021
1 parent 5fe22d6 commit 5cb019a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/Queue/LoadingQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class LoadingQueue extends PredictionQueue {
this.IMAGE_SIZE = 224
this.LOADING_TIMEOUT = 1000
this.loadingQueue = new ConcurrentQueue({
concurrency: 2, // We need another concurrent IO job if image stuck for 1 sec with loading timeout
concurrency: 100, // We need another concurrent IO job if image stuck for 1 sec with loading timeout
timeout: 0,
onProcess: this.onLoadingProcess.bind(this),
onSuccess: this.onLoadingSuccess.bind(this),
Expand Down

0 comments on commit 5cb019a

Please sign in to comment.