Skip to content

Commit 511359a

Browse files
committed
fix!: remove min/max from topologies (#2158)
Once upon a time these options were intended to cause libp2p to close connections or search for more peers that support a given protocol but it was never implemented. Remove the options since they don't do anything, they may be restored in future if the functionality is ever required.
1 parent a321f15 commit 511359a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/interface/src/topology/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ import type { Connection } from '../connection/index.js'
22
import type { PeerId } from '../peer-id/index.js'
33

44
export interface Topology {
5-
min?: number
6-
max?: number
7-
85
/**
96
* If true, invoke `onConnect` for this topology on transient (e.g. short-lived
107
* and/or data-limited) connections. (default: false)

0 commit comments

Comments
 (0)