Browse Source

fix(syncing-server): decrease metric expiration time

Karol Sójko 1 year ago
parent
commit
f1aa431c22
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/syncing-server/src/Infra/Redis/RedisMetricStore.ts

+ 2 - 2
packages/syncing-server/src/Infra/Redis/RedisMetricStore.ts

@@ -64,8 +64,8 @@ export class RedisMetricStore implements MetricsStoreInterface {
 
 
     pipeline.incr(key)
     pipeline.incr(key)
 
 
-    const expirationTimeIn24Hours = 60 * 60 * 24
-    pipeline.expire(key, expirationTimeIn24Hours)
+    const expirationTime = 60 * 60 * 6
+    pipeline.expire(key, expirationTime)
 
 
     await pipeline.exec()
     await pipeline.exec()
   }
   }