Skip to content

Commit

Permalink
some byte 'enum' fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Jun 12, 2024
1 parent 1a23e44 commit b3f05ef
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 b3f05ef

Please sign in to comment.