alias the interface errors instead of redefining them
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
)
