Skip to content

Commit 7944406

Browse files
committed
Check expected TTL
1 parent 315796a commit 7944406

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ghga_connector/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
MAX_PART_NUMBER = 10000
2323
MAX_RETRIES = 5
2424
MAX_WAIT_TIME = 60 * 60
25-
CACHE_MIN_FRESH = 5
25+
CACHE_MIN_FRESH = 3

src/ghga_connector/core/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_cache_transport(
7171
cache_transport = hishel.AsyncCacheTransport(
7272
transport=wrapped_transport or httpx.AsyncHTTPTransport(),
7373
storage=hishel.AsyncInMemoryStorage(
74-
ttl=50, capacity=512
74+
ttl=57, capacity=512
7575
), # persist for 1 minute
7676
controller=hishel.Controller(
7777
cacheable_methods=["POST", "GET"],

0 commit comments

Comments
 (0)