Merge branch 'release/0.2.7'

This commit is contained in:
Evgeniy Kulikov 2019-12-17 18:04:11 +03:00
commit a7f2026db0
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2
2 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -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