lab2: add missing evidence from benchmark
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-10-10 08:06:11 +03:00
parent 6e3515d71b
commit 24fe6e23d2
45 changed files with 3784 additions and 3669 deletions
+6 -1
View File
@@ -56,8 +56,13 @@ func main() {
userSvc := service.NewUserService(userRepo)
chatSvc := service.NewChatService(chatRepo, userRepo)
msgCache := redisrepo.NewMessageCache(redisClient)
var msgCache *redisrepo.MessageCache
if cfg.CacheEnabled {
msgCache = redisrepo.NewMessageCache(redisClient)
}
msgSvc := service.NewMessageService(msgRepo, chatRepo, msgCache)
authSvc := service.NewAuthService(userRepo, sessRepo, cfg.SessionTTL())
router := transporthttp.NewRouter(userSvc, chatSvc, msgSvc, authSvc, pool, redisClient)