Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alok committed Jul 6, 2023
1 parent 5df3b9c commit 8bd0499
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/storer/internal/reserve/reserve.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ func (r *Reserve) DeleteChunk(
return removeChunk(ctx, store, item)
}

// CleanupBinIndex removes the bin index entry for the chunk. This is called mainly
// to cleanup the bin index if other indexes are missing during reserve cleanup.
func (r *Reserve) CleanupBinIndex(
ctx context.Context,
store internal.Storage,
Expand All @@ -322,7 +324,6 @@ func (r *Reserve) CleanupBinIndex(
Bin: swarm.Proximity(r.baseAddr.Bytes(), chunkAddress.Bytes()),
BinID: binID,
})
return
}

func removeChunk(ctx context.Context, store internal.Storage, item *batchRadiusItem) error {
Expand Down

0 comments on commit 8bd0499

Please sign in to comment.