mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-03-10 17:20:39 +08:00
alias the interface errors instead of redefining them
This commit is contained in:
parent
d70507ffbb
commit
2894975557
@ -1,10 +1,10 @@
|
||||
package rcmgr
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/libp2p/go-libp2p-core/network"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrResourceLimitExceeded = errors.New("resource limit exceeded")
|
||||
ErrResourceScopeClosed = errors.New("resource scope closed")
|
||||
ErrResourceLimitExceeded = network.ErrResourceLimitExceeded
|
||||
ErrResourceScopeClosed = network.ErrResourceScopeClosed
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user