commit adb596600b4705fa22061db5bfe076407c5e0ec6
parent fa70ad757fad15628f8d6f4c872aa218467e4026
Author: tobi <31960611+tsmethurst@users.noreply.github.com>
Date: Tue, 21 Feb 2023 10:49:57 +0100
[bugfix] Remove initial storage cleanup (#1545)
Diffstat:
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git a/internal/storage/storage.go b/internal/storage/storage.go
@@ -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 (
@@ -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,