Add async lock protection to geo service cache and mark Task 16 done
This commit is contained in:
@@ -130,7 +130,7 @@ async def perf_db_path(tmp_path_factory: Any) -> str:
|
||||
ips = await _seed_f2b_db(path, _BAN_COUNT)
|
||||
|
||||
# Pre-populate the in-memory geo cache so no network calls are made.
|
||||
geo_service.clear_cache()
|
||||
await geo_service.clear_cache()
|
||||
country_cycle = _COUNTRIES * (_BAN_COUNT // len(_COUNTRIES) + 1)
|
||||
for i, ip in enumerate(ips):
|
||||
cc, cn = country_cycle[i]
|
||||
|
||||
Reference in New Issue
Block a user