From d16e4fa34df222e08968b060d40aaf6b6ebeb912 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 29 Jan 2025 16:57:04 +0100 Subject: [feature] Use maintenance router to serve 503 while server is starting/migrating (#3705) * [feature] Use maintenance router to serve 503 while server is starting/migrating * love you linter, kissies --- internal/web/etag.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/web/etag.go') diff --git a/internal/web/etag.go b/internal/web/etag.go index a87d9fa3b..88779871c 100644 --- a/internal/web/etag.go +++ b/internal/web/etag.go @@ -29,6 +29,10 @@ import ( "codeberg.org/gruf/go-cache/v3" ) +type withETagCache interface { + ETagCache() cache.Cache[string, eTagCacheEntry] +} + func newETagCache() cache.TTLCache[string, eTagCacheEntry] { eTagCache := cache.NewTTL[string, eTagCacheEntry](0, 1000, 0) eTagCache.SetTTL(time.Hour, false) -- cgit v1.2.3