mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-02-05 01:00:19 +08:00
Fix go vet issue
This commit is contained in:
parent
0f3804229e
commit
836d53a98d
1
rcmgr.go
1
rcmgr.go
@ -482,7 +482,6 @@ func IsSystemScope(name string) bool {
|
||||
}
|
||||
|
||||
func IsTransientScope(name string) bool {
|
||||
return strings.HasPrefix(name, "transient")
|
||||
return name == "transient"
|
||||
}
|
||||
|
||||
|
1
scope.go
1
scope.go
@ -77,7 +77,6 @@ func newResourceScopeSpan(owner *resourceScope, id int) *resourceScope {
|
||||
// IsSpan will return true if this name was created by newResourceScopeSpan
|
||||
func IsSpan(name string) bool {
|
||||
return strings.Contains(name, ".span-")
|
||||
return name == "transient"
|
||||
}
|
||||
|
||||
// Resources implementation
|
||||
|
Loading…
Reference in New Issue
Block a user