This commit is contained in:
binwiederhier
2026-03-21 16:29:58 -04:00
parent 1742302f83
commit 6a820b5030
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"heckel.io/ntfy/v2/log" "heckel.io/ntfy/v2/log"
) )
const tagFileBackend = "file_backend" const tagFileBackend = "attachment_file"
type fileBackend struct { type fileBackend struct {
dir string dir string
+1 -1
View File
@@ -10,7 +10,7 @@ import (
) )
const ( const (
tagS3Backend = "s3_backend" tagS3Backend = "attachment_s3"
deleteBatchSize = 1000 deleteBatchSize = 1000
) )
+1 -1
View File
@@ -15,7 +15,7 @@ import (
) )
const ( const (
tagStore = "attachment_cache" tagStore = "attachment_store"
syncInterval = 15 * time.Minute // How often to run the background sync loop syncInterval = 15 * time.Minute // How often to run the background sync loop
orphanGracePeriod = time.Hour // Don't delete orphaned objects younger than this to avoid races with in-flight uploads orphanGracePeriod = time.Hour // Don't delete orphaned objects younger than this to avoid races with in-flight uploads
) )