refactor: change update event to just pass currently processed event and the total number
This commit is contained in:
parent
432d4937a1
commit
02412ba934
|
@ -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) =>
|
||||||
|
|
Loading…
Reference in New Issue