mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-02-10 20:00:57 +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 {
|
func IsTransientScope(name string) bool {
|
||||||
return strings.HasPrefix(name, "transient")
|
|
||||||
return 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
|
// IsSpan will return true if this name was created by newResourceScopeSpan
|
||||||
func IsSpan(name string) bool {
|
func IsSpan(name string) bool {
|
||||||
return strings.Contains(name, ".span-")
|
return strings.Contains(name, ".span-")
|
||||||
return name == "transient"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resources implementation
|
// Resources implementation
|
||||||
|
Loading…
Reference in New Issue
Block a user