Skip to content

Commit

Permalink
uTP: fix "needed" ackNr's logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottyPoi committed Jan 16, 2025
1 parent eae0359 commit 0d15e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/portalnetwork/src/wire/utp/Socket/WriteSocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class WriteSocket extends UtpSocket {
this._clearTimeout()
}
logProgress() {
const needed = this.writer!.dataChunks.filter((n) => !this.ackNrs.includes(n[0]))
const needed = this.writer!.dataChunks.filter((n) => !this.ackNrs.includes(n[0])).map((n) => n[0])
this.logger(
`AckNr's received (${this.ackNrs.length}/${
this.writer!.sentChunks.length
Expand Down

0 comments on commit 0d15e3d

Please sign in to comment.