Skip to content

Commit a2b41f7

Browse files
author
crazehang
authored
docs: update typos in Address Manager and comments (#2468)
Signed-off-by: crazehang <[email protected]>
1 parent 80278b3 commit a2b41f7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/libp2p/src/address-manager/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Scenarios for Announce Addresses include:
2424

2525
When a libp2p node is created, the Address Manager will be populated from the provided addresses through the libp2p configuration. Once the node is started, the Transport Manager component will gather the listen addresses from the Address Manager, so that the libp2p transports can attempt to bind to them.
2626

27-
Libp2p will use the the Address Manager as the source of truth when advertising the peers addresses. After all transports are ready, other libp2p components/subsystems will kickoff, namely the Identify Service and the DHT. Both of them will announce the node addresses to the other peers in the network. The announce addresses will have an important role here and will be gathered by libp2p to compute its current addresses to advertise everytime it is needed.
27+
Libp2p will use the Address Manager as the source of truth when advertising the peers addresses. After all transports are ready, other libp2p components/subsystems will kickoff, namely the Identify Service and the DHT. Both of them will announce the node addresses to the other peers in the network. The announce addresses will have an important role here and will be gathered by libp2p to compute its current addresses to advertise everytime it is needed.
2828

2929
## Future Considerations
3030

packages/transport-tcp/src/listener.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class TCPListener extends TypedEventEmitter<ListenerEvents> implements Li
179179

180180
private onSocket (socket: net.Socket): void {
181181
if (this.status.code !== TCPListenerStatusCode.ACTIVE) {
182-
throw new CodeError('Server is is not listening yet', 'ERR_SERVER_NOT_RUNNING')
182+
throw new CodeError('Server is not listening yet', 'ERR_SERVER_NOT_RUNNING')
183183
}
184184
// Avoid uncaught errors caused by unstable connections
185185
socket.on('error', err => {

packages/utils/src/abstract-stream.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ export interface AbstractStreamInit {
5050
onCloseWrite?(): void
5151

5252
/**
53-
* Invoked when the the stream has been reset by the remote
53+
* Invoked when the stream has been reset by the remote
5454
*/
5555
onReset?(): void
5656

5757
/**
58-
* Invoked when the the stream has errored
58+
* Invoked when the stream has errored
5959
*/
6060
onAbort?(err: Error): void
6161

0 commit comments

Comments
 (0)