diff --git a/CHANGELOG.md b/CHANGELOG.md index d92bbfa..7b46745 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog This is the changelog for NeoFS Proto +## [0.2.7] - 2019-12-17 + +### Fixed +- Bug with DecodeMetrics (empty metrics returns) + ## [0.2.6] - 2019-12-17 ### Added @@ -72,3 +77,4 @@ Initial public release [0.2.4]: https://github.com/nspcc-dev/neofs-proto/compare/v0.2.3...v0.2.4 [0.2.5]: https://github.com/nspcc-dev/neofs-proto/compare/v0.2.4...v0.2.5 [0.2.6]: https://github.com/nspcc-dev/neofs-proto/compare/v0.2.5...v0.2.6 +[0.2.7]: https://github.com/nspcc-dev/neofs-proto/compare/v0.2.6...v0.2.7 diff --git a/state/service.go b/state/service.go index cd7b685..343a822 100644 --- a/state/service.go +++ b/state/service.go @@ -45,6 +45,7 @@ func DecodeMetrics(r *MetricsResponse) ([]*MetricFamily, error) { if err := proto.Unmarshal(r.Metrics[i], mf); err != nil { return nil, err } + metrics = append(metrics, mf) } return metrics, nil