Skip to content

Commit

Permalink
merge conflict resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 committed Jun 6, 2024
1 parent d675d1a commit 7d81aad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/client/preprocessing/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class PreprocessingAPI {
id: null,
params: params,
protocols: protocols,
deferred: new this.jiffClient.helpers.Deferred()
deferred: this.jiffClient.helpers.createDeferred()
};

this.preprocessingTasks[this.preprocessingTasks.length - 1].add(task);
Expand Down
6 changes: 3 additions & 3 deletions lib/client/preprocessing/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class PreprocessDaemon {
if (task.count > 1) {
const remainingTasks = Object.assign({}, task);

const deferred1 = new this.jiffClient.helpers.Deferred();
const deferred2 = new this.jiffClient.helpers.Deferred();
const deferred1 = this.jiffClient.helpers.createDeferred();
const deferred2 = this.jiffClient.helpers.createDeferred();
Promise.all([deferred1.promise, deferred2.promise]).then(task.deferred.resolve);
task.deferred = deferred1;
remainingTasks.deferred = deferred2;
Expand Down Expand Up @@ -169,7 +169,7 @@ class PreprocessDaemon {
id: null,
params: extra_params,
protocols: task.protocols,
deferred: new this.jiffClient.helpers.Deferred()
deferred: this.jiffClient.helpers.createDeferred()
};

deferredChain.push(nextTask.deferred.promise);
Expand Down

0 comments on commit 7d81aad

Please sign in to comment.