Add metric type to metric struct.

This commit is contained in:
2020-12-23 13:45:33 +05:00
parent 7e90814fde
commit c34babeaf8
3 changed files with 6 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ func (s *Storage) Get(key string) (models.Metric, error) {
data, found := s.data[key]
if !found {
return models.NewMetric("", "", nil), ErrMetricNotFound
return models.NewMetric("", "", "", nil), ErrMetricNotFound
}
return data, nil