Skip to content

Commit

Permalink
chore: remove ts-expect-errors
Browse files Browse the repository at this point in the history
libp2p/js-libp2p-interfaces#351 has been merged
so these comments can be removed.
  • Loading branch information
achingbrain committed Apr 11, 2023
1 parent 4533365 commit c5cab5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/connection-manager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ export class DefaultConnectionManager extends EventEmitter<ConnectionManagerEven
}

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

Expand Down
1 change: 0 additions & 1 deletion src/libp2p.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ export class Libp2pNode extends EventEmitter<Libp2pEvents> implements Libp2p {
}

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

Expand Down

0 comments on commit c5cab5b

Please sign in to comment.