Skip to content

Commit

Permalink
fix: allow configuring circuit stream limits (#1542)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Potsides <alex@achingbrain.net>
  • Loading branch information
mpetrunic and achingbrain committed Jan 17, 2023
1 parent 0831cd9 commit f82e6b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/circuit/index.ts
Expand Up @@ -16,8 +16,9 @@ import type { ContentRouting } from '@libp2p/interface-content-routing'
import type { ConnectionManager } from '@libp2p/interface-connection-manager'
import type { TransportManager } from '@libp2p/interface-transport'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { StreamHandlerOptions } from '@libp2p/interface-registrar'

export interface RelayConfig {
export interface RelayConfig extends StreamHandlerOptions {
enabled: boolean
advertise: RelayAdvertiseConfig
hop: HopConfig
Expand Down
2 changes: 1 addition & 1 deletion src/circuit/transport.ts
Expand Up @@ -67,7 +67,7 @@ export class Circuit implements Transport, Startable {
void this._onProtocol(data).catch(err => {
log.error(err)
})
})
}, { ...this._init })
.catch(err => {
log.error(err)
})
Expand Down

0 comments on commit f82e6b8

Please sign in to comment.