File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1197,7 +1197,7 @@ async fn load_targets(
11971197 path,
11981198 url : metadata_base_url. clone ( ) ,
11991199 } ) ?;
1200- let ( max_targets_size , specifier) = match targets_meta. length {
1200+ let ( max_targets_file_size , specifier) = match targets_meta. length {
12011201 Some ( length) => ( length, "snapshot.json" ) ,
12021202 None => ( max_targets_size, "max_targets_size parameter" ) ,
12031203 } ;
@@ -1207,13 +1207,19 @@ async fn load_targets(
12071207 fetch_sha256 (
12081208 transport,
12091209 targets_url. clone ( ) ,
1210- max_targets_size ,
1210+ max_targets_file_size ,
12111211 specifier,
12121212 & hashes. sha256 ,
12131213 )
12141214 . await ?
12151215 } else {
1216- fetch_max_size ( transport, targets_url. clone ( ) , max_targets_size, specifier) . await ?
1216+ fetch_max_size (
1217+ transport,
1218+ targets_url. clone ( ) ,
1219+ max_targets_file_size,
1220+ specifier,
1221+ )
1222+ . await ?
12171223 } ;
12181224 let data = stream
12191225 . into_vec ( )
You can’t perform that action at this time.
0 commit comments