Skip to content

Commit

Permalink
chore: cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
mgordel committed May 8, 2024
1 parent d57d453 commit 02c2af3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export class TaskService {
private isRunning = false;
private logger: Logger;
private options: TaskConfig;
private i = 0;

constructor(
private yagnaApi: YagnaApi,
Expand Down Expand Up @@ -105,8 +104,6 @@ export class TaskService {

try {
this.startAcceptingAgreementPayments(agreement);
if (this.i < 3) await sleep(8_000, true);
this.i++;
// if the task is not queued, (it may have changed its state due to timeout), terminate agreement and exit execution
if (!task.isQueued()) {
await this.agreementPoolService
Expand Down

0 comments on commit 02c2af3

Please sign in to comment.