feat: added identity and service token postgres update debounced

This commit is contained in:
=
2024-08-21 22:21:31 +05:30
parent cf3b2ebbca
commit e821a11271
8 changed files with 933 additions and 3809 deletions
+5
View File
@@ -1,3 +1,8 @@
export const daysToMillisecond = (days: number) => days * 24 * 60 * 60 * 1000;
export const secondsToMillis = (seconds: number) => seconds * 1000;
export const applyJitter = (delayMs: number, jitterMs: number) => {
const jitter = Math.floor(Math.random() * (2 * jitterMs)) - jitterMs;
return delayMs + jitter;
};