This commit is contained in:
Vladislav Kunetskiy
2026-10-16 16:39:00 +03:00
parent 4e84354642
commit 1ed57cd49f
98 changed files with 6574 additions and 449 deletions
+1 -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)
}