make a map object before inserting into it (#1217)

I think this is causing panics.
This commit is contained in:
paul cannon 2019-02-03 18:42:20 -06:00 committed by GitHub
parent 0f662b8e38
commit 0238a7785b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,7 @@ func (t *Tally) calculateAtRestData(ctx context.Context) (latestTally time.Time,
if err != nil {
return latestTally, nodeData, Error.Wrap(err)
}
nodeData = make(map[storj.NodeID]float64)
err = t.pointerdb.Iterate("", "", true, false,
func(it storage.Iterator) error {