Skip to content

Commit

Permalink
Update tough/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Cressey <ben@cressey.org>
  • Loading branch information
flavio and bcressey committed Jul 17, 2024
1 parent 8ebef01 commit ff2625e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tough/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ async fn load_snapshot(
transport: &dyn Transport,
root: &Signed<Root>,
timestamp: &Signed<Timestamp>,
max_timestamp_size: u64,
max_snapshot_size: u64,
datastore: &Datastore,
metadata_base_url: &Url,
expiration_enforcement: ExpirationEnforcement,
Expand Down Expand Up @@ -953,7 +953,7 @@ async fn load_snapshot(
fetch_sha256(
transport,
url.clone(),
snapshot_meta.length.unwrap_or(max_timestamp_size),
snapshot_meta.length.unwrap_or(max_snapshot_size),
"timestamp.json",
&hashes.sha256,
)
Expand All @@ -962,7 +962,7 @@ async fn load_snapshot(
fetch_max_size(
transport,
url.clone(),
snapshot_meta.length.unwrap_or(max_timestamp_size),
snapshot_meta.length.unwrap_or(max_snapshot_size),
"timestamp.json",
)
.await?
Expand Down

0 comments on commit ff2625e

Please sign in to comment.