make a map object before inserting into it (#1217)
I think this is causing panics.
This commit is contained in:
parent
0f662b8e38
commit
0238a7785b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user