mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-03-10 17:20:39 +08:00
Persist endpoint
This commit is contained in:
parent
dc09a97d9b
commit
a41033230f
1
rcmgr.go
1
rcmgr.go
@ -278,6 +278,7 @@ func (r *resourceManager) OpenConnection(dir network.Direction, usefd bool, endp
|
|||||||
} else {
|
} else {
|
||||||
conn = newConnectionScope(dir, usefd, r.limits.GetConnLimits(), r)
|
conn = newConnectionScope(dir, usefd, r.limits.GetConnLimits(), r)
|
||||||
}
|
}
|
||||||
|
conn.endpoint = endpoint
|
||||||
|
|
||||||
if err := conn.AddConn(dir, usefd); err != nil {
|
if err := conn.AddConn(dir, usefd); err != nil {
|
||||||
conn.Done()
|
conn.Done()
|
||||||
|
Loading…
Reference in New Issue
Block a user