Skip to content

Commit

Permalink
fix: Doc config typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Oct 28, 2024
1 parent bdbbd10 commit 2a572b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/p2p-media-loader-core/src/p2p/peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export class Peer {
const { request, controls } = downloadingContext;

const isWrongSegment =
!request.data ||
downloadingContext.request.segment.externalId !== command.i ||
downloadingContext.requestId !== command.r;

Expand All @@ -164,7 +165,7 @@ export class Peer {
(await this.peerConfig.validateP2PSegment?.(
request.segment.url,
request.segment.byteRange,
request.data!
request.data
)) ?? true;

if (this.downloadingContext !== downloadingContext) return;
Expand Down
1 change: 0 additions & 1 deletion packages/p2p-media-loader-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ export type CommonCoreConfig = {
* httpDownloadTimeWindow: 3000,
* p2pDownloadTimeWindow: 6000,
* swarmId: "custom swarm ID for video stream",
* cashedSegmentsCount: 1000,
* }
* ```
*
Expand Down

0 comments on commit 2a572b0

Please sign in to comment.