From 02412ba934a4ee51e77723209d025fc129b139ef Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 23 Jul 2023 10:17:08 -0400 Subject: [PATCH] refactor: change update event to just pass currently processed event and the total number --- src/baseClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/baseClient.ts b/src/baseClient.ts index 9df5c00..7202a6d 100644 --- a/src/baseClient.ts +++ b/src/baseClient.ts @@ -145,7 +145,7 @@ export default abstract class BaseClient extends EventEmitter { startCommittee = validOrCommittee as Uint8Array[]; - this.emit("update", update); + this.emit("update", i, updates.length); if (this.options.syncDelay) { await new Promise((resolve) =>