forked from mtusi2026/mtusi2026lab5
Исправил отзыв сессии без доверия к кэшу и добавил недостающие тесты
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user