This commit is contained in:
Vladislav Kunetskiy
2026-10-21 21:22:42 +03:00
parent f4bd361f12
commit 464db7fdd6
238 changed files with 13332 additions and 704 deletions
+2 -1
View File
@@ -50,7 +50,7 @@ func run(cfg config.Config, log *slog.Logger) error {
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer stop()
store, err := postgres.New(ctx, cfg.Postgres)
store, err := postgres.New(ctx, cfg.Postgres, time.Duration(cfg.Idempotency.TTLSeconds)*time.Second)
if err != nil {
return fmt.Errorf("connect database: %w", err)
}
@@ -103,6 +103,7 @@ func run(cfg config.Config, log *slog.Logger) error {
),
rest.NewSecurityHandler(sessionService),
log,
cfg.Server.MaxBodyBytes,
)
if err != nil {
return fmt.Errorf("build router: %w", err)