Skip to content

Commit

Permalink
remove unused option
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Oct 31, 2024
1 parent 96ac04a commit 8bbc8a7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions p2p/transport/tcp/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions p2p/transport/websocket/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bbc8a7

Please sign in to comment.