fix appending to array

This commit is contained in:
whyrusleeping 2020-09-22 13:27:58 -05:00
parent 3153ab9ae3
commit 3cf2fd595f

View File

@ -177,6 +177,8 @@ func (dss *dealStatsServer) handleStorageClientStats(w http.ResponseWriter, r *h
for _, cso := range stats {
cso.NumCids = len(cso.cids)
cso.NumMiners = len(cso.providers)
out = append(out, cso)
}
if err := json.NewEncoder(w).Encode(out); err != nil {