mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-24 09:20:59 +00:00
[bugfix] Remove initial storage cleanup (#1545)
This commit is contained in:
parent
fa70ad757f
commit
adb596600b
1 changed files with 0 additions and 6 deletions
|
@ -33,7 +33,6 @@ import (
|
||||||
"github.com/minio/minio-go/v7"
|
"github.com/minio/minio-go/v7"
|
||||||
"github.com/minio/minio-go/v7/pkg/credentials"
|
"github.com/minio/minio-go/v7/pkg/credentials"
|
||||||
"github.com/superseriousbusiness/gotosocial/internal/config"
|
"github.com/superseriousbusiness/gotosocial/internal/config"
|
||||||
"github.com/superseriousbusiness/gotosocial/internal/log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -128,11 +127,6 @@ func NewFileStorage() (*Driver, error) {
|
||||||
return nil, fmt.Errorf("error opening disk storage: %w", err)
|
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{
|
return &Driver{
|
||||||
KVStore: kv.New(disk),
|
KVStore: kv.New(disk),
|
||||||
Storage: disk,
|
Storage: disk,
|
||||||
|
|
Loading…
Reference in a new issue