aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/rcrowley/go-metrics/registry.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/rcrowley/go-metrics/registry.go')
-rw-r--r--vendor/github.com/rcrowley/go-metrics/registry.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/rcrowley/go-metrics/registry.go b/vendor/github.com/rcrowley/go-metrics/registry.go
index 9086dcbdd..2bb7a1e7d 100644
--- a/vendor/github.com/rcrowley/go-metrics/registry.go
+++ b/vendor/github.com/rcrowley/go-metrics/registry.go
@@ -167,9 +167,9 @@ func NewPrefixedChildRegistry(parent Registry, prefix string) Registry {
// Call the given function for each registered metric.
func (r *PrefixedRegistry) Each(fn func(string, interface{})) {
- wrappedFn := func (prefix string) func(string, interface{}) {
+ wrappedFn := func(prefix string) func(string, interface{}) {
return func(name string, iface interface{}) {
- if strings.HasPrefix(name,prefix) {
+ if strings.HasPrefix(name, prefix) {
fn(name, iface)
} else {
return
@@ -184,7 +184,7 @@ func (r *PrefixedRegistry) Each(fn func(string, interface{})) {
func findPrefix(registry Registry, prefix string) (Registry, string) {
switch r := registry.(type) {
case *PrefixedRegistry:
- return findPrefix(r.underlying, r.prefix + prefix)
+ return findPrefix(r.underlying, r.prefix+prefix)
case *StandardRegistry:
return r, prefix
}