metrics.go: remove unused startTime
This commit is contained in:
parent
6cd90960e1
commit
fb18155057
@ -16,7 +16,6 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"sort"
|
"sort"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/valyala/histogram"
|
"github.com/valyala/histogram"
|
||||||
)
|
)
|
||||||
@ -119,8 +118,6 @@ func writeProcessMetrics(w io.Writer) {
|
|||||||
runtime.Compiler, runtime.GOARCH, runtime.GOOS, runtime.GOROOT())
|
runtime.Compiler, runtime.GOARCH, runtime.GOOS, runtime.GOROOT())
|
||||||
}
|
}
|
||||||
|
|
||||||
var startTime = time.Now()
|
|
||||||
|
|
||||||
func registerMetric(name string, m metric) {
|
func registerMetric(name string, m metric) {
|
||||||
if err := validateMetric(name); err != nil {
|
if err := validateMetric(name); err != nil {
|
||||||
panic(fmt.Errorf("BUG: invalid metric name %q: %s", name, err))
|
panic(fmt.Errorf("BUG: invalid metric name %q: %s", name, err))
|
||||||
|
Loading…
Reference in New Issue
Block a user