Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Dec 4, 2024
1 parent 4e55fe8 commit 6ab85ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/protocol-identify/src/identify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ export class Identify extends AbstractIdentify implements Startable, IdentifyInt
throw new InvalidMessageError('identified peer is our own peer id?')
}

// Get the observedAddr if there is one
// if the observed address is publicly routable, add it to the address
// manager for verification via AutoNAT
this.maybeAddObservedAddress(observedAddr)

this.log('identify completed for peer %p and protocols %o', id, protocols)
Expand All @@ -116,7 +117,6 @@ export class Identify extends AbstractIdentify implements Startable, IdentifyInt
}

private maybeAddObservedAddress (observedAddr: Uint8Array | undefined): void {
// Get the observedAddr if there is one
const cleanObservedAddr = getCleanMultiaddr(observedAddr)

if (cleanObservedAddr == null) {
Expand Down

0 comments on commit 6ab85ea

Please sign in to comment.