Skip to content

Commit

Permalink
better name for input parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Aug 20, 2024
1 parent 4a82698 commit 8e3c45f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cfdppy/filestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def calculate_checksum(
self,
checksum_type: ChecksumType,
file_path: Path,
file_sz: int,
size_to_verify: int,
segment_len: int = 4096,
) -> bytes:
pass
Expand All @@ -121,11 +121,11 @@ def verify_checksum(
checksum: bytes,
checksum_type: ChecksumType,
file_path: Path,
file_sz: int,
size_to_verify: int,
segment_len: int = 4096,
) -> bool:
return (
self.calculate_checksum(checksum_type, file_path, file_sz, segment_len)
self.calculate_checksum(checksum_type, file_path, size_to_verify, segment_len)
== checksum
)

Expand Down

0 comments on commit 8e3c45f

Please sign in to comment.