chore: formatting
This commit is contained in:
@@ -22,7 +22,7 @@ type Client struct {
|
||||
db db.Querier
|
||||
retrySignal chan struct{} // signals retry worker to process queued retries
|
||||
mu sync.Mutex
|
||||
lastReqTime time.Time // rate limiting: last request timestamp
|
||||
lastReqTime time.Time // rate limiting: last request timestamp
|
||||
}
|
||||
|
||||
func NewClient(db db.Querier) *Client {
|
||||
|
||||
@@ -2,5 +2,5 @@ package jikan
|
||||
|
||||
import "time"
|
||||
|
||||
const shortCacheTTL = time.Hour // 1 hour - for frequently changing data
|
||||
const longCacheTTL = time.Hour * 24 // 24 hours - for stable data like genres
|
||||
const shortCacheTTL = time.Hour // 1 hour - for frequently changing data
|
||||
const longCacheTTL = time.Hour * 24 // 24 hours - for stable data like genres
|
||||
|
||||
Reference in New Issue
Block a user