chore: formatting

This commit is contained in:
2026-05-10 20:03:35 +02:00
parent 59ec9b17c9
commit 790a384f58
6 changed files with 13 additions and 12 deletions

View File

@@ -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 {

View File

@@ -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