Skip to content

Commit 6ab85ea

Browse files
committed
chore: update comment
1 parent 4e55fe8 commit 6ab85ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/protocol-identify/src/identify.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ export class Identify extends AbstractIdentify implements Startable, IdentifyInt
107107
throw new InvalidMessageError('identified peer is our own peer id?')
108108
}
109109

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

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

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

122122
if (cleanObservedAddr == null) {

0 commit comments

Comments
 (0)