Исправил отзыв сессии без доверия к кэшу и добавил недостающие тесты

This commit is contained in:
gera
2026-11-19 21:38:31 +03:00
parent 27fafc6725
commit 583013fa06
12 changed files with 597 additions and 160 deletions
+1 -4
View File
@@ -125,11 +125,8 @@ func main() {
return
}
cache := openCache(log)
defer cache.Close()
slots := envInt("UPLOAD_CONCURRENCY", 10)
app := NewApp(db, cache, log, time.Duration(ttlSec)*time.Second, time.Duration(idemSec)*time.Second, store,
app := NewApp(db, log, time.Duration(ttlSec)*time.Second, time.Duration(idemSec)*time.Second, store,
limits{maxBytes: maxBytes, maxPixels: maxPixels, uploadSlots: slots, maxAttempts: maxAttempts})
relayCtx, stopRelay := context.WithCancel(ctx)
defer stopRelay()