metrics: fixed gofmt

This commit is contained in:
Kiel barry 2018-05-29 15:01:17 -07:00
parent 6eefd0b58c
commit 47923969fb
2 changed files with 5 additions and 5 deletions

View file

@ -19,7 +19,7 @@ var (
gcStats debug.GCStats gcStats debug.GCStats
) )
// CaptureDebugGCStats captures new values for the Go garbage collector statistics // CaptureDebugGCStats captures new values for the Go garbage collector statistics
// exported in debug.GCStats. This is designed to be called as a goroutine. // exported in debug.GCStats. This is designed to be called as a goroutine.
func CaptureDebugGCStats(r Registry, d time.Duration) { func CaptureDebugGCStats(r Registry, d time.Duration) {
for range time.Tick(d) { for range time.Tick(d) {
@ -28,8 +28,8 @@ func CaptureDebugGCStats(r Registry, d time.Duration) {
} }
// CaptureDebugGCStatsOnce captures new values for the Go garbage collector // CaptureDebugGCStatsOnce captures new values for the Go garbage collector
// statistics exported in debug.GCStats. This is designed to be called in a // statistics exported in debug.GCStats. This is designed to be called in a
// background goroutine.Giving a registry which has not been given to // background goroutine.Giving a registry which has not been given to
// RegisterDebugGCStats will // RegisterDebugGCStats will
// panic. // panic.
// //

View file

@ -52,7 +52,7 @@ var (
threadCreateProfile = pprof.Lookup("threadcreate") threadCreateProfile = pprof.Lookup("threadcreate")
) )
// CaptureRuntimeMemStats captures new values for the Go runtime statistics exported // CaptureRuntimeMemStats captures new values for the Go runtime statistics exported
// in runtime.MemStats. This is designed to be called as a goroutine. // in runtime.MemStats. This is designed to be called as a goroutine.
func CaptureRuntimeMemStats(r Registry, d time.Duration) { func CaptureRuntimeMemStats(r Registry, d time.Duration) {
for range time.Tick(d) { for range time.Tick(d) {
@ -60,7 +60,7 @@ func CaptureRuntimeMemStats(r Registry, d time.Duration) {
} }
} }
// CaptureRuntimeMemStatsOnce captures new values for the Go runtime statistics // CaptureRuntimeMemStatsOnce captures new values for the Go runtime statistics
// exported in runtime.MemStats. This is designed to be called in a background // exported in runtime.MemStats. This is designed to be called in a background
// goroutine. Giving a registry which has not been given to RegisterRuntimeMemStats // goroutine. Giving a registry which has not been given to RegisterRuntimeMemStats
// will panic. // will panic.