Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit 15ba22b

Browse files
committed
Fix 'replicate.progress' event's total argument
1 parent 90d42b4 commit 15ba22b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class Store {
9595
this._replicationStatus.buffered = bufferedLength
9696
this._recalculateReplicationMax(this.replicationStatus.progress)
9797
// logger.debug(`<replicate.progress>`)
98-
this.events.emit('replicate.progress', this.address.toString(), hash, entry, this.replicationStatus.progress, null)
98+
this.events.emit('replicate.progress', this.address.toString(), hash, entry, this.replicationStatus.progress, this.replicationStatus.max)
9999
})
100100

101101
const onLoadCompleted = async (logs, have) => {

0 commit comments

Comments
 (0)