Skip to content

Commit

Permalink
address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell Tracy committed Jan 9, 2024
1 parent 8da281e commit f1d2d78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion yarn-project/pxe/src/synchronizer/synchronizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,11 @@ export class Synchronizer {
* Retry decoding any deferred notes for the specified contract address.
* @param contractAddress - the contract address that has just been added
*/
public async reprocessDeferredNotesForContract(contractAddress: AztecAddress) {
public reprocessDeferredNotesForContract(contractAddress: AztecAddress): Promise<void> {
return this.jobQueue.put(() => this.#reprocessDeferredNotesForContract(contractAddress));
}

async #reprocessDeferredNotesForContract(contractAddress: AztecAddress): Promise<void> {
const deferredNotes = await this.db.getDeferredNotesByContract(contractAddress);

// group deferred notes by txHash to properly deal with possible duplicates
Expand Down

0 comments on commit f1d2d78

Please sign in to comment.