satellite/repair/repairer: remove unused healthyMap

This change removes unused healthyMap from (*SegmentRepairer).Repair.

Change-Id: Ie80eefdb5b7125bf70986cb13462eee737af214c
This commit is contained in:
Artur M. Wolff 2021-11-16 16:48:31 +01:00
parent 2e363707c5
commit 89639199fe

View File

@ -221,13 +221,11 @@ func (repairer *SegmentRepairer) Repair(ctx context.Context, queueSegment *queue
lostPiecesSet := sliceToSet(missingPieces)
var healthyPieces, unhealthyPieces metabase.Pieces
healthyMap := make(map[uint16]bool)
// Populate healthyPieces with all pieces from the segment except those correlating to indices in lostPieces
for _, piece := range pieces {
excludeNodeIDs = append(excludeNodeIDs, piece.StorageNode)
if !lostPiecesSet[piece.Number] {
healthyPieces = append(healthyPieces, piece)
healthyMap[piece.Number] = true
} else {
unhealthyPieces = append(unhealthyPieces, piece)
}