From f557f2461691e8c8d5e78f0a856726c6c034f480 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Tue, 17 Dec 2019 17:53:48 +0300 Subject: [PATCH 1/2] Fix bug with DecodeMetrics (empty metrics returns) --- state/service.go | 1 + 1 file changed, 1 insertion(+) 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 From a52e26389e0a6711dc1ab53c9f230979cc6c1180 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Tue, 17 Dec 2019 18:03:24 +0300 Subject: [PATCH 2/2] CHANGELOG --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) 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