File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
packages/p2p-media-loader-core/src/p2p Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ function isSafariOrWkWebview() {
37
37
}
38
38
39
39
export class P2PTrackerClient {
40
- private static readonly PEER_ID_BY_INFO_HASH = new Map < string , string > ( ) ;
41
-
42
40
private readonly streamShortId : string ;
43
41
private readonly client : TrackerClient ;
44
42
private readonly _peers = new Map < string , PeerItem > ( ) ;
@@ -54,11 +52,7 @@ export class P2PTrackerClient {
54
52
const streamHash = PeerUtil . getStreamHash ( streamSwarmId ) ;
55
53
this . streamShortId = LoggerUtils . getStreamString ( stream ) ;
56
54
57
- let peerId = P2PTrackerClient . PEER_ID_BY_INFO_HASH . get ( streamHash ) ;
58
- if ( ! peerId ) {
59
- peerId = PeerUtil . generatePeerId ( config . trackerClientVersionPrefix ) ;
60
- P2PTrackerClient . PEER_ID_BY_INFO_HASH . set ( streamHash , peerId ) ;
61
- }
55
+ const peerId = PeerUtil . generatePeerId ( config . trackerClientVersionPrefix ) ;
62
56
63
57
this . client = new TrackerClient ( {
64
58
infoHash : utf8ToUintArray ( streamHash ) ,
You can’t perform that action at this time.
0 commit comments