Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
usernamedt committed Jun 21, 2022
1 parent 0be6cb5 commit bcb0ab8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/databases/greenplum/delete_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package greenplum
import (
"context"
"fmt"
"golang.org/x/sync/errgroup"
"os"
"path"
"strconv"
"strings"

"golang.org/x/sync/errgroup"

"github.com/wal-g/tracelog"
"github.com/wal-g/wal-g/internal"
"github.com/wal-g/wal-g/internal/databases/postgres"
Expand Down Expand Up @@ -126,7 +127,8 @@ func (h *DeleteHandler) DeleteBeforeTarget(target internal.BackupObject, confirm
deleteSem := make(chan struct{}, deleteConcurrency)

// clean the segments
for _, meta := range sentinel.Segments {
for i := range sentinel.Segments {
meta := sentinel.Segments[i]
errorGroup.Go(func() error {
deleteSem <- struct{}{}
deleteErr := h.runDeleteOnSegment(backup, meta, confirmed)
Expand Down

0 comments on commit bcb0ab8

Please sign in to comment.