Skip to content

Commit

Permalink
moved requests to else block
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee348 committed Nov 11, 2024
1 parent 48aa93c commit a24f4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sessions/src/trackers/multiple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ export class MultipleTracker implements migrator.PresignedMigrationTracker, Conf
wallet: string
}): Promise<{ imageHash: string; context: commons.context.WalletContext } | undefined> {
let imageHash: { imageHash: string; context: commons.context.WalletContext } | undefined
const requests = this.trackers.map(t => t.imageHashOfCounterfactualWallet(args))

if (this.isSerial) {
for (const tracker of this.trackers) {
Expand All @@ -111,6 +110,7 @@ export class MultipleTracker implements migrator.PresignedMigrationTracker, Conf
}
}
} else {
const requests = this.trackers.map(t => t.imageHashOfCounterfactualWallet(args))
imageHash = await raceUntil(requests, undefined, result => Boolean(result))
}

Expand Down

0 comments on commit a24f4a3

Please sign in to comment.