Skip to content

Commit

Permalink
fix!: remove min/max from topologies (#2158)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
achingbrain committed Nov 3, 2023
1 parent 7f2ed7f commit eec1294
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/interface/src/topology/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import type { Connection } from '../connection/index.js'
import type { PeerId } from '../peer-id/index.js'

export interface Topology {
min?: number
max?: number

/**
* If true, invoke `onConnect` for this topology on transient (e.g. short-lived
* and/or data-limited) connections. (default: false)
Expand Down

0 comments on commit eec1294

Please sign in to comment.