Skip to content

Commit

Permalink
Fix log message, tweak tries
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Sep 1, 2023
1 parent 21236c5 commit 6bd0d4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clients/SpokePoolClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type _SpokePoolUpdate = {
};
type SpokePoolUpdate = { success: false } | _SpokePoolUpdate;

const maxTries = 3;
const maxTries = 5;

export class SpokePoolClient extends clients.SpokePoolClient {
protected override async _update(eventsToQuery: string[]): Promise<SpokePoolUpdate> {
Expand All @@ -27,7 +27,7 @@ export class SpokePoolClient extends clients.SpokePoolClient {
} catch (err) {
this.logger.info({
at: "SpokePoolClient::_update",
message: `Caught unhandled exception in SpokePoolClient::_update() on try ${i + 1}/${maxTries}}`,
message: `Caught unhandled exception in SpokePoolClient::_update() on try ${i + 1}/${maxTries}.`,
error: typeguards.isError(err) ? (err as Error).message : "Unknown error",
});
}
Expand Down

0 comments on commit 6bd0d4e

Please sign in to comment.