Complete lab2 grade 4 implementation and report
Application checks / application (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Daria0w0
2026-10-10 00:28:43 +03:00
parent 83e3810d33
commit c0ca56f208
24 changed files with 1107 additions and 137 deletions
+4 -1
View File
@@ -14,6 +14,7 @@ import (
"syscall"
"time"
"gitflic.ru/project/d-sotnikova5/mtusi2026lab1-fork/internal/cache"
"gitflic.ru/project/d-sotnikova5/mtusi2026lab1-fork/internal/httpapi"
"gitflic.ru/project/d-sotnikova5/mtusi2026lab1-fork/internal/store"
)
@@ -54,7 +55,9 @@ func run() error {
return err
}
defer pool.Close()
db := store.NewPostgresStore(pool)
profiles := cache.NewProfiles(envOrDefault("REDIS_ADDR", "redis:6379"))
defer profiles.Close()
db := store.NewPostgresStore(pool).WithProfiles(profiles)
var stopping atomic.Bool
ttl, err := strconv.ParseInt(envOrDefault("SESSION_TTL_SECONDS", "3600"), 10, 64)