Remove First and Last data members from Metrics structs

They can be trivially computed when required.
This commit is contained in:
Bryan Boreham
2018-07-11 18:04:39 +00:00
parent c96611b13d
commit 1cfc8f4581
5 changed files with 16 additions and 91 deletions

View File

@@ -84,8 +84,6 @@ func TestSummaries(t *testing.T) {
Samples: nil,
Min: metric.Min,
Max: metric.Max,
First: metric.First,
Last: metric.Last,
},
}
if !reflect.DeepEqual(want, row) {