hh
This commit is contained in:
@@ -325,8 +325,11 @@ class HydrusNetwork(Store):
|
||||
]
|
||||
|
||||
try:
|
||||
# Compute file hash
|
||||
file_hash = sha256_file(file_path)
|
||||
# Compute file hash (or use hint from kwargs to avoid redundant IO)
|
||||
file_hash = kwargs.get("hash") or kwargs.get("file_hash")
|
||||
if not file_hash:
|
||||
file_hash = sha256_file(file_path)
|
||||
|
||||
debug(f"{self._log_prefix()} file hash: {file_hash}")
|
||||
|
||||
# Use persistent client with session key
|
||||
|
||||
Reference in New Issue
Block a user