diff --git a/backend/database/cache/cache.go b/backend/database/cache/cache.go index 3529ce4b..303ddc75 100644 --- a/backend/database/cache/cache.go +++ b/backend/database/cache/cache.go @@ -185,11 +185,11 @@ func (c *Caches) storeInCache(db *gorm.DB, identifier string, ttl time.Duration) type key byte const ( - useCacheKey key = 0 - cacheTTLKey key = 1 + useCacheKey key = iota + cacheTTLKey ) -type queryType int +type queryType byte const ( uponQuery queryType = iota diff --git a/backend/locals/type.go b/backend/locals/type.go index bd23fa17..c352aad9 100644 --- a/backend/locals/type.go +++ b/backend/locals/type.go @@ -3,5 +3,5 @@ package locals type localsKey byte const ( - userKey localsKey = 0 + userKey localsKey = iota )