*: reflow comments to 80 characters
This reformats the entire Metropolis codebase to have comments no longer
than 80 characters, implementing CR/66.
This has been done half manually, as we don't have a good integration
between commentwrap/Bazel, but that can be implemented if we decide to
go for this tool/limit.
Change-Id: If1fff0b093ef806f5dc00551c11506e8290379d0
diff --git a/metropolis/node/core/debug_service.go b/metropolis/node/core/debug_service.go
index 964642b..e0f7753 100644
--- a/metropolis/node/core/debug_service.go
+++ b/metropolis/node/core/debug_service.go
@@ -44,8 +44,10 @@
cluster *cluster.Manager
kubernetes *kubernetes.Service
logtree *logtree.LogTree
- // traceLock provides exclusive access to the Linux tracing infrastructure (ftrace)
- // This is a channel because Go's mutexes can't be cancelled or be acquired in a non-blocking way.
+ // traceLock provides exclusive access to the Linux tracing infrastructure
+ // (ftrace)
+ // This is a channel because Go's mutexes can't be cancelled or be acquired
+ // in a non-blocking way.
traceLock chan struct{}
}
@@ -192,7 +194,8 @@
}
}
-// Validate property names as they are used in path construction and we really don't want a path traversal vulnerability
+// Validate property names as they are used in path construction and we really
+// don't want a path traversal vulnerability
var safeTracingPropertyNamesRe = regexp.MustCompile("^[a-z0-9_]+$")
func writeTracingProperty(name string, value string) error {