From 3cf2fd595f7f74561a5856befa69afe6ee8d570f Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Tue, 22 Sep 2020 13:27:58 -0500 Subject: [PATCH] fix appending to array --- cmd/lotus-shed/dealtracker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/lotus-shed/dealtracker.go b/cmd/lotus-shed/dealtracker.go index cbe375803..57f42bc83 100644 --- a/cmd/lotus-shed/dealtracker.go +++ b/cmd/lotus-shed/dealtracker.go @@ -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 {