Skip to content

Commit

Permalink
fix: always load sequence on start
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersuweijie committed Aug 27, 2024
1 parent 2adbec8 commit fab7e6a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions eth/src/Shuttle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,7 @@ class Shuttle {
}

async startMonitoring() {
const sequence = await this.getAsync(KEY_NEXT_SEQUENCE);
if (sequence && sequence !== '') {
this.sequence = parseInt(sequence);
} else {
this.sequence = await this.relayer.loadSequence();
}
this.sequence = await this.relayer.loadSequence();

// Graceful shutdown
let shutdown = false;
Expand Down

0 comments on commit fab7e6a

Please sign in to comment.