forked from TrueCloudLab/frostfs-api-go
Merge branch 'release/0.2.7'
This commit is contained in:
commit
a7f2026db0
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue