Skip to content

Commit

Permalink
refactor: update segment locking logic in HybridLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaDemchenko committed Aug 19, 2024
1 parent 750c76c commit bf96747
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/p2p-media-loader-core/src/hybrid-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ export class HybridLoader {
throw new Error("Segment storage is not initialized.");
}
this.segmentStorage.addIsSegmentLockedPredicate((segment) => {
const streamSwarmId = this.config.swarmId ?? this.streamManifestUrl;
const activeStreamSwarmId = StreamUtils.getStreamSwarmId(
streamSwarmId,
this.config.swarmId ?? this.streamManifestUrl,
activeStream,
);

Expand Down

0 comments on commit bf96747

Please sign in to comment.