diff --git a/satellite/gc/piecetracker.go b/satellite/gc/piecetracker.go index cdbf8e3ea..29f4f874f 100644 --- a/satellite/gc/piecetracker.go +++ b/satellite/gc/piecetracker.go @@ -38,7 +38,7 @@ func NewPieceTracker(log *zap.Logger, config Config, pieceCounts map[storj.NodeI creationDate: time.Now().UTC(), pieceCounts: pieceCounts, - retainInfos: make(map[storj.NodeID]*RetainInfo), + retainInfos: make(map[storj.NodeID]*RetainInfo, len(pieceCounts)), } }