Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
1974d7e
1
Parent(s):
ccdf46e
giving error
Browse files- Powers/utils/caching.py +2 -2
Powers/utils/caching.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from
|
2 |
from time import perf_counter, time
|
3 |
from typing import List
|
4 |
|
@@ -9,7 +9,7 @@ from pyrogram.types.messages_and_media.message import Message
|
|
9 |
|
10 |
from Powers import LOGGER
|
11 |
|
12 |
-
THREAD_LOCK =
|
13 |
|
14 |
# admins stay cached for 30 mins
|
15 |
ADMIN_CACHE = TTLCache(maxsize=512, ttl=(60 * 30), timer=perf_counter)
|
|
|
1 |
+
from threading import RLock
|
2 |
from time import perf_counter, time
|
3 |
from typing import List
|
4 |
|
|
|
9 |
|
10 |
from Powers import LOGGER
|
11 |
|
12 |
+
THREAD_LOCK = RLock()
|
13 |
|
14 |
# admins stay cached for 30 mins
|
15 |
ADMIN_CACHE = TTLCache(maxsize=512, ttl=(60 * 30), timer=perf_counter)
|