File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/discovery/src/peer-exchange Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,6 @@ export class PeerExchangeDiscovery
200
200
const hasPeer = await this . components . peerStore . has ( peerId ) ;
201
201
if ( hasPeer ) {
202
202
const { hasMultiaddrDiff, hasShardDiff } = await this . checkPeerInfoDiff (
203
- peerId ,
204
203
peerInfo ,
205
204
shardInfo
206
205
) ;
@@ -284,10 +283,10 @@ export class PeerExchangeDiscovery
284
283
}
285
284
286
285
private async checkPeerInfoDiff (
287
- peerId : PeerId ,
288
286
peerInfo : PeerInfo ,
289
287
shardInfo ?: ShardInfo
290
288
) : Promise < { hasMultiaddrDiff : boolean ; hasShardDiff : boolean } > {
289
+ const { id : peerId } = peerInfo ;
291
290
const peer = await this . components . peerStore . get ( peerId ) ;
292
291
293
292
const existingMultiaddrs = peer . addresses . map ( ( a ) =>
You can’t perform that action at this time.
0 commit comments