Skip to content

Commit

Permalink
prog
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay committed Jan 5, 2025
1 parent e5b3ef5 commit 8fa98d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pruner/checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ func DetectPreviousRun(ctx context.Context, ds datastore.Datastore, expectedKind

cp, err := getCheckpoint(ctx, wrappedDs)
if err != nil {
if errors.Is(err, errCheckpointNotFound) {
return nil
}
return fmt.Errorf("failed to load checkpoint: %w", err)
}

Expand Down
4 changes: 2 additions & 2 deletions pruner/checkpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package pruner

import (
"context"
"github.com/ipfs/go-datastore/namespace"
"github.com/stretchr/testify/assert"
"testing"

"github.com/ipfs/go-datastore"
"github.com/ipfs/go-datastore/namespace"
ds_sync "github.com/ipfs/go-datastore/sync"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

Expand Down

0 comments on commit 8fa98d8

Please sign in to comment.