From 534d1e19dc478dfca471845d012c1dc0276f8040 Mon Sep 17 00:00:00 2001 From: nikhil2128 Date: Sat, 7 Oct 2023 18:40:19 +0530 Subject: [PATCH] changed ttl --- backend/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app.ts b/backend/app.ts index e908292..cbd0a1d 100644 --- a/backend/app.ts +++ b/backend/app.ts @@ -3,7 +3,7 @@ import { createClient } from "redis"; import { json } from "body-parser"; const DEFAULT_BALANCE = 100; -const LOCK_TTL = 5; +const LOCK_TTL = 1; interface ChargeResult { isAuthorized: boolean;