fix appending to array
This commit is contained in:
parent
3153ab9ae3
commit
3cf2fd595f
@ -177,6 +177,8 @@ func (dss *dealStatsServer) handleStorageClientStats(w http.ResponseWriter, r *h
|
|||||||
for _, cso := range stats {
|
for _, cso := range stats {
|
||||||
cso.NumCids = len(cso.cids)
|
cso.NumCids = len(cso.cids)
|
||||||
cso.NumMiners = len(cso.providers)
|
cso.NumMiners = len(cso.providers)
|
||||||
|
|
||||||
|
out = append(out, cso)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := json.NewEncoder(w).Encode(out); err != nil {
|
if err := json.NewEncoder(w).Encode(out); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user