From 348736996bd8af2ac7ba31c4c96c9a197c00f84d Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Wed, 30 Oct 2024 20:26:10 -0700 Subject: [PATCH] remove unused option --- p2p/transport/tcp/tcp.go | 7 ------- p2p/transport/websocket/websocket.go | 7 ------- 2 files changed, 14 deletions(-) diff --git a/p2p/transport/tcp/tcp.go b/p2p/transport/tcp/tcp.go index 1b145c2b45..c80723436e 100644 --- a/p2p/transport/tcp/tcp.go +++ b/p2p/transport/tcp/tcp.go @@ -117,13 +117,6 @@ func WithMetrics() Option { } } -func WithSharedTCP(mgr *tcpreuse.ConnMgr) Option { - return func(tr *TcpTransport) error { - tr.sharedTcp = mgr - return nil - } -} - // TcpTransport is the TCP transport. type TcpTransport struct { // Connection upgrader for upgrading insecure stream connections to diff --git a/p2p/transport/websocket/websocket.go b/p2p/transport/websocket/websocket.go index 8388a7c1e3..e24cb88c6d 100644 --- a/p2p/transport/websocket/websocket.go +++ b/p2p/transport/websocket/websocket.go @@ -81,13 +81,6 @@ func WithTLSConfig(conf *tls.Config) Option { } } -func WithSharedTCP(mgr *tcpreuse.ConnMgr) Option { - return func(t *WebsocketTransport) error { - t.sharedTcp = mgr - return nil - } -} - // WebsocketTransport is the actual go-libp2p transport type WebsocketTransport struct { upgrader transport.Upgrader