8000 fix: allow configuring circuit stream limits (#1542) · libp2p/js-libp2p@f82e6b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit f82e6b8

Browse files
fix: allow configuring circuit stream limits (#1542)
Co-authored-by: Alex Potsides <alex@achingbrain.net>
1 parent 0831cd9 commit f82e6b8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/circuit/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ import type { ContentRouting } from '@libp2p/interface-content-routing'
1616
import type { ConnectionManager } from '@libp2p/interface-connection-manager'
1717
import type { TransportManager } from '@libp2p/interface-transport'
1818
import type { PeerId } from '@libp2p/interface-peer-id'
19+
import type { StreamHandlerOptions } from '@libp2p/interface-registrar'
1920

20-
export interface RelayConfig {
21+
export interface RelayConfig extends StreamHandlerOptions {
2122
enabled: boolean
2223
advertise: RelayAdvertiseConfig
2324
hop: HopConfig

src/circuit/transport.ts

Lines changed: 1 addition & 1 deletion
< 53E0 tr class="diff-line-row">
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class Circuit implements Transport, Startable {
6767
void this._onProtocol(data).catch(err => {
6868
log.error(err)
6969
})
70-
})
70+
}, { ...this._init })
7171
.catch(err => {
7272
log.error(err)
7373
})

0 commit comments

Comments
 (0)
0