From 9db9be90bb071e38feb28d2f2e754c4b292585ec Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 13 Oct 2023 17:57:53 +0300 Subject: [PATCH] fix!: remove min/max from topologies 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. --- packages/interface/src/topology/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/interface/src/topology/index.ts b/packages/interface/src/topology/index.ts index 0772df3b38..c29728db05 100644 --- a/packages/interface/src/topology/index.ts +++ b/packages/interface/src/topology/index.ts @@ -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 - onConnect?(peerId: PeerId, conn: Connection): void onDisconnect?(peerId: PeerId): void }