Fix bug with DecodeMetrics (empty metrics returns)

remotes/KirillovDenis/feature/refactor-sig-rpc
Evgeniy Kulikov 2019-12-17 17:53:48 +03:00
parent 805ef243ee
commit f557f24616
No known key found for this signature in database
GPG Key ID: BF6AEE0A2A699BF2
1 changed files with 1 additions and 0 deletions

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