refactor: change update event to just pass currently processed event and the total number

This commit is contained in:
Derrick Hammer 2023-07-23 10:17:08 -04:00
parent 432d4937a1
commit 02412ba934
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ export default abstract class BaseClient extends EventEmitter {
startCommittee = validOrCommittee as Uint8Array[]; startCommittee = validOrCommittee as Uint8Array[];
this.emit("update", update); this.emit("update", i, updates.length);
if (this.options.syncDelay) { if (this.options.syncDelay) {
await new Promise((resolve) => await new Promise((resolve) =>