mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-01-27 12:50:07 +08:00
12 lines
315 B
Go
12 lines
315 B
Go
package rcmgr
|
|
|
|
import (
|
|
rcmgr "github.com/libp2p/go-libp2p/p2p/host/resource-manager"
|
|
)
|
|
|
|
// IsSpan will return true if this name was created by newResourceScopeSpan
|
|
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager.IsSpan instead
|
|
func IsSpan(name string) bool {
|
|
return rcmgr.IsSpan(name)
|
|
}
|