Skip to content

Commit

Permalink
[bugfix] Remove initial storage cleanup (#1545)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmethurst authored Feb 21, 2023
1 parent fa70ad7 commit adb5966
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import (
"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
"github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/log"
)

const (
Expand Down Expand Up @@ -128,11 +127,6 @@ func NewFileStorage() (*Driver, error) {
return nil, fmt.Errorf("error opening disk storage: %w", err)
}

// Perform an initial storage clean to delete old dirs.
if err := disk.Clean(context.Background()); err != nil {
log.Errorf(nil, "error performing storage cleanup: %v", err)
}

return &Driver{
KVStore: kv.New(disk),
Storage: disk,
Expand Down

0 comments on commit adb5966

Please sign in to comment.