Skip to content

Commit

Permalink
add queryPollResolvers error log
Browse files Browse the repository at this point in the history
  • Loading branch information
defi-dev committed Jul 2, 2024
1 parent 76972c8 commit 383982d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/Network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,16 @@ export class Network {
}

this.clog('debug', `CallResolvers: Polling ${resolversToCall.length} resolvers...`);
const results = await this.queryPollResolvers(false, resolversToCall, this.agents[0].getWorkerSignerAddress());
let jobsToExecute = 0;

this.clog('debug', `CallResolvers: Polling ${resolversToCall.length} resolvers...`);
let results = null,
jobsToExecute = 0;
try {
results = await this.queryPollResolvers(false, resolversToCall, this.agents[0].getWorkerSignerAddress());
} catch (e) {
this.clog('error', `queryPollResolvers error: ${e.message}`);
return;
}

for (let i = 0; i < results.length; i++) {
const decoded = results[i].success
Expand Down

0 comments on commit 383982d

Please sign in to comment.