From 6a820b503046dd3e2838b874631ca7b7dbd8bec2 Mon Sep 17 00:00:00 2001 From: binwiederhier Date: Sat, 21 Mar 2026 16:29:58 -0400 Subject: [PATCH] Tags --- attachment/backend_file.go | 2 +- attachment/backend_s3.go | 2 +- attachment/store.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/attachment/backend_file.go b/attachment/backend_file.go index 8aaf20b9..260236d1 100644 --- a/attachment/backend_file.go +++ b/attachment/backend_file.go @@ -9,7 +9,7 @@ import ( "heckel.io/ntfy/v2/log" ) -const tagFileBackend = "file_backend" +const tagFileBackend = "attachment_file" type fileBackend struct { dir string diff --git a/attachment/backend_s3.go b/attachment/backend_s3.go index eb911edc..61d1c7b1 100644 --- a/attachment/backend_s3.go +++ b/attachment/backend_s3.go @@ -10,7 +10,7 @@ import ( ) const ( - tagS3Backend = "s3_backend" + tagS3Backend = "attachment_s3" deleteBatchSize = 1000 ) diff --git a/attachment/store.go b/attachment/store.go index 10dcd17b..8059a0cf 100644 --- a/attachment/store.go +++ b/attachment/store.go @@ -15,7 +15,7 @@ import ( ) const ( - tagStore = "attachment_cache" + tagStore = "attachment_store" 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 )