metrics.go: remove unused startTime

This commit is contained in:
Aliaksandr Valialkin 2019-04-17 14:43:23 +03:00
parent 6cd90960e1
commit fb18155057

View File

@ -16,7 +16,6 @@ import (
"runtime"
"sort"
"sync"
"time"
"github.com/valyala/histogram"
)
@ -119,8 +118,6 @@ func writeProcessMetrics(w io.Writer) {
runtime.Compiler, runtime.GOARCH, runtime.GOOS, runtime.GOROOT())
}
var startTime = time.Now()
func registerMetric(name string, m metric) {
if err := validateMetric(name); err != nil {
panic(fmt.Errorf("BUG: invalid metric name %q: %s", name, err))