Skip to content

Commit

Permalink
fix: stub new connection manager accept incoming connection method (#…
Browse files Browse the repository at this point in the history
…1404)

Temporary fix until #1398 is merged.
  • Loading branch information
achingbrain authored Oct 5, 2022
1 parent 01749a9 commit 5ad175c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/connection-manager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -675,4 +675,8 @@ export class DefaultConnectionManager extends EventEmitter<ConnectionManagerEven
})
)
}

async acceptIncomingConnection (maConn: MultiaddrConnection): Promise<boolean> {
return true
}
}

0 comments on commit 5ad175c

Please sign in to comment.