fix: lock heartbeat every 10s, timeout after 30s (was 2min/5min)
This commit is contained in:
@@ -17,7 +17,7 @@ import {
|
||||
getNextOfferNumber,
|
||||
} from '../../services/offers.service';
|
||||
|
||||
const LOCK_TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes — lock expires if no heartbeat
|
||||
const LOCK_TIMEOUT_MS = 30 * 1000; // 30 seconds — lock expires if no heartbeat
|
||||
|
||||
|
||||
export default async function quotationsRoutes(fastify: FastifyInstance): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user