Refactor geo caching and service layer tests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-04-25 18:15:31 +02:00
parent 654dbdb000
commit d467190eb1
7 changed files with 218 additions and 150 deletions

View File

@@ -717,7 +717,13 @@ class GeoCache:
self._dirty.clear()
rows = [
(ip, self._cache[ip].country_code, self._cache[ip].country_name, self._cache[ip].asn, self._cache[ip].org)
(
ip,
self._cache[ip].country_code,
self._cache[ip].country_name,
self._cache[ip].asn,
self._cache[ip].org,
)
for ip in to_flush
if ip in self._cache
]