@@ -3,6 +3,7 @@ package network
3
3
import (
4
4
"github.com/libp2p/go-libp2p-core/peer"
5
5
"github.com/libp2p/go-libp2p-core/protocol"
6
+ "github.com/multiformats/go-multiaddr"
6
7
)
7
8
8
9
// ResourceManager is the interface to the network resource management subsystem.
@@ -83,7 +84,7 @@ type ResourceManager interface {
83
84
// is scoped at the transient scope.
84
85
// The caller owns the returned scope and is responsible for calling Done in order to signify
85
86
// the end of the scope's span.
86
- OpenConnection (dir Direction , usefd bool ) (ConnManagementScope , error )
87
+ OpenConnection (dir Direction , usefd bool , endpoint multiaddr. Multiaddr ) (ConnManagementScope , error )
87
88
88
89
// OpenStream creates a new stream scope, initially unnegotiated.
89
90
// An unnegotiated stream will be initially unattached to any protocol scope
@@ -300,7 +301,7 @@ func (n *nullResourceManager) ViewProtocol(p protocol.ID, f func(ProtocolScope)
300
301
func (n * nullResourceManager ) ViewPeer (p peer.ID , f func (PeerScope ) error ) error {
301
302
return f (NullScope )
302
303
}
303
- func (n * nullResourceManager ) OpenConnection (dir Direction , usefd bool ) (ConnManagementScope , error ) {
304
+ func (n * nullResourceManager ) OpenConnection (dir Direction , usefd bool , endpoint multiaddr. Multiaddr ) (ConnManagementScope , error ) {
304
305
return NullScope , nil
305
306
}
306
307
func (n * nullResourceManager ) OpenStream (p peer.ID , dir Direction ) (StreamManagementScope , error ) {
0 commit comments