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