Skip to content

Commit 5345dc9

Browse files
committed
chore: remove local lock ttl
Signed-off-by: nikolay <[email protected]>
1 parent c04db62 commit 5345dc9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/relay/src/lib/services/lockService/LocalLockStrategy.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ export class LocalLockStrategy {
2828
*/
2929
public static LOCAL_LOCK_MAX_ENTRIES: number = 1_000; // Max 1000 addresses
3030

31-
/**
32-
* Time-to-live for each lock entry in the cache (in milliseconds).
33-
*/
34-
public static LOCAL_LOCK_TTL: number = 300_000; // 5 minutes
35-
3631
/**
3732
* Seconds for auto-release if lock not manually released
3833
*/
@@ -43,7 +38,6 @@ export class LocalLockStrategy {
4338
*/
4439
private localLockStates = new LRUCache<string, LockState>({
4540
max: LocalLockStrategy.LOCAL_LOCK_MAX_ENTRIES,
46-
ttl: LocalLockStrategy.LOCAL_LOCK_TTL,
4741
});
4842

4943
/**

0 commit comments

Comments
 (0)