Skip to content

Commit

Permalink
db cache nits (#1019)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley authored Jun 12, 2024
1 parent 3698fab commit 2dd0789
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions backend/database/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/locals/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package locals
type localsKey byte

const (
userKey localsKey = 0
userKey localsKey = iota
)

0 comments on commit 2dd0789

Please sign in to comment.