fix: lock timeout 10s to match heartbeat interval

This commit is contained in:
BOHA
2026-03-24 11:26:32 +01:00
parent 3bc7fb6800
commit 1addd22a24

View File

@@ -17,7 +17,7 @@ import {
getNextOfferNumber, getNextOfferNumber,
} from '../../services/offers.service'; } from '../../services/offers.service';
const LOCK_TIMEOUT_MS = 30 * 1000; // 30 seconds — lock expires if no heartbeat const LOCK_TIMEOUT_MS = 10 * 1000; // 10 seconds — lock expires if no heartbeat
export default async function quotationsRoutes(fastify: FastifyInstance): Promise<void> { export default async function quotationsRoutes(fastify: FastifyInstance): Promise<void> {