Skip to content

Commit

Permalink
Remove ConnManager method
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Apr 11, 2023
1 parent 8fc0947 commit 7fd64c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
12 changes: 6 additions & 6 deletions p2p/host/basic/basic_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -759,15 +759,15 @@ func (h *BasicHost) ConnManager() connmgr.ConnManager {
return h.cmgr
}

// This is a temporary workaround/hack that fixes #2233. Once we have a
// proper address pipeline, rework this. See the issue for more context.
type transportForListeninger interface {
TransportForListening(a ma.Multiaddr) transport.Transport
}

// Addrs returns listening addresses that are safe to announce to the network.
// The output is the same as AllAddrs, but processed by AddrsFactory.
func (h *BasicHost) Addrs() []ma.Multiaddr {
// This is a temporary workaround/hack that fixes #2233. Once we have a
// proper address pipeline, rework this. See the issue for more context.
type transportForListeninger interface {
TransportForListening(a ma.Multiaddr) transport.Transport
}

type addCertHasher interface {
AddCertHashes(m ma.Multiaddr) ma.Multiaddr
}
Expand Down
4 changes: 0 additions & 4 deletions p2p/transport/quic/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,3 @@ func (t *transport) CloseVirtualListener(l *virtualListener) error {
return nil

}

func (t *transport) ConnManager() *quicreuse.ConnManager {
return t.connManager
}
4 changes: 0 additions & 4 deletions p2p/transport/webtransport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,3 @@ func (t *transport) AddCertHashes(m ma.Multiaddr) ma.Multiaddr {
}
return m.Encapsulate(t.certManager.AddrComponent())
}

func (t *transport) ConnManager() *quicreuse.ConnManager {
return t.connManager
}

0 comments on commit 7fd64c3

Please sign in to comment.