h
This commit is contained in:
@@ -140,10 +140,11 @@ class HydrusNetwork(Store):
|
||||
# Best-effort total count (used for startup diagnostics). Avoid heavy payloads.
|
||||
# Some Hydrus setups appear to return no count via the CBOR client for this endpoint,
|
||||
# so prefer a direct JSON request with a short timeout.
|
||||
try:
|
||||
self.get_total_count(refresh=True)
|
||||
except Exception:
|
||||
pass
|
||||
# NOTE: Disabled to avoid unnecessary API call during init; count will be retrieved on first search/list if needed.
|
||||
# try:
|
||||
# self.get_total_count(refresh=True)
|
||||
# except Exception:
|
||||
# pass
|
||||
|
||||
def _get_service_key(self, service_name: str, *, refresh: bool = False) -> Optional[str]:
|
||||
"""Resolve (and cache) the Hydrus service key for the given service name."""
|
||||
|
||||
Reference in New Issue
Block a user