Skip to content

Commit 3854894

Browse files
authored
chore: remove ts-expect-errors (#1679)
libp2p/js-libp2p-interfaces#351 has been merged so these comments can be removed.
1 parent 4533365 commit 3854894

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/connection-manager/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@ export class DefaultConnectionManager extends EventEmitter<ConnectionManagerEven
500500
}
501501

502502
try {
503-
// @ts-expect-error until https://github.com/libp2p/js-libp2p-interfaces/pull/351 is merged
504503
const connection = await this.components.dialer.dial(peerIdOrMultiaddr, options)
505504
let peerConnections = this.connections.get(connection.remotePeer.toString())
506505

src/libp2p.ts

-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ export class Libp2pNode extends EventEmitter<Libp2pEvents> implements Libp2p {
365365
}
366366

367367
async dial (peer: PeerId | Multiaddr | Multiaddr[], options: AbortOptions = {}): Promise<Connection> {
368-
// @ts-expect-error
369368
return await this.components.connectionManager.openConnection(peer, options)
370369
}
371370

0 commit comments

Comments
 (0)