Passing time.Duration (int64 nanoseconds) as $2 in NOW() + $2 caused PostgreSQL to interpret the nanosecond value as seconds, setting cooldown_until to year ~59066 instead of +30 minutes. Fix: pre-compute time.Now().Add(CrashCooldownDuration) and pass the resulting time.Time — pq encodes it as a proper timestamptz. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api.go | ||
| b2.go | ||
| crash_test.go | ||
| db.go | ||
| Dockerfile | ||
| glicko2.go | ||
| main.go | ||
| metrics.go | ||
| metrics_test.go | ||