From 79caf5342e9e983abbbada5093480b6f93981fc5 Mon Sep 17 00:00:00 2001 From: David Kaltschmidt Date: Fri, 17 Nov 2017 22:33:24 +0100 Subject: [PATCH] Comment styles --- util/stats/query_stats.go | 4 ++-- util/stats/stats_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/util/stats/query_stats.go b/util/stats/query_stats.go index 206131aa8..9c0c42b32 100644 --- a/util/stats/query_stats.go +++ b/util/stats/query_stats.go @@ -50,7 +50,7 @@ func (s QueryTiming) String() string { } } -// QueryTimings with all query timers mapped to durations. +// queryTimings with all query timers mapped to durations. type queryTimings struct { EvalTotalTime float64 `json:"evalTotalTime"` ResultSortTime float64 `json:"resultSortTime"` @@ -61,7 +61,7 @@ type queryTimings struct { ExecTotalTime float64 `json:"execTotalTime"` } -// QueryStats currently only holding query timings +// QueryStats currently only holding query timings. type QueryStats struct { Timings queryTimings `json:"timings,omitempty"` } diff --git a/util/stats/stats_test.go b/util/stats/stats_test.go index b56932a34..e7ef2717b 100644 --- a/util/stats/stats_test.go +++ b/util/stats/stats_test.go @@ -1,4 +1,4 @@ -// Copyright 2015 The Prometheus Authors +// Copyright 2017 The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at