summaryrefslogtreecommitdiff
path: root/internal/storage/storage.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-02-21 10:49:57 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-21 10:49:57 +0100
commitadb596600b4705fa22061db5bfe076407c5e0ec6 (patch)
tree1fe5f1188ca7de7209b94aaba7deabefd8894256 /internal/storage/storage.go
parent[docs] Add site_url for absolute 404 page assets (#1544) (diff)
downloadgotosocial-adb596600b4705fa22061db5bfe076407c5e0ec6.tar.xz
[bugfix] Remove initial storage cleanup (#1545)v0.7.1
Diffstat (limited to 'internal/storage/storage.go')
-rw-r--r--internal/storage/storage.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/internal/storage/storage.go b/internal/storage/storage.go
index b66545185..00dcc088c 100644
--- 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,