From 5ad175cb3918da0956f6c1c336f5423a551c78a8 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Wed, 5 Oct 2022 10:31:46 +0100 Subject: [PATCH] fix: stub new connection manager accept incoming connection method (#1404) Temporary fix until #1398 is merged. --- src/connection-manager/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/connection-manager/index.ts b/src/connection-manager/index.ts index c3d0de88d7..1b9b7e7ce6 100644 --- a/src/connection-manager/index.ts +++ b/src/connection-manager/index.ts @@ -10,7 +10,7 @@ import type { Startable } from '@libp2p/interfaces/startable' import { codes } from '../errors.js' import { isPeerId, PeerId } from '@libp2p/interface-peer-id' import { setMaxListeners } from 'events' -import type { Connection } from '@libp2p/interface-connection' +import type { Connection, MultiaddrConnection } from '@libp2p/interface-connection' import type { ConnectionManager } from '@libp2p/interface-connection-manager' import { Components, Initializable } from '@libp2p/components' import * as STATUS from '@libp2p/interface-connection/status' @@ -675,4 +675,8 @@ export class DefaultConnectionManager extends EventEmitter { + return true + } }