File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
dragonfly-client-util/src/id_generator
dragonfly-client/src/proxy Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,10 @@ mod tests {
373373 ) ,
374374 (
375375 IDGenerator :: new( "127.0.0.1" . to_string( ) , "localhost" . to_string( ) , false ) ,
376- TaskIDParameter :: BlobDigestBased ( "sha256:1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" . to_string( ) ) ,
376+ TaskIDParameter :: BlobDigestBased (
377+ "sha256:1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
378+ . to_string( ) ,
379+ ) ,
377380 "719498689c2f5bd76140f3bd2b03bcbc3134890e72b4d5b788d8b41ec0cd0f93" ,
378381 ) ,
379382 ] ;
Original file line number Diff line number Diff line change @@ -1098,7 +1098,6 @@ fn make_registry_mirror_request(
10981098 Ok ( request)
10991099}
11001100
1101-
11021101/// make_download_task_request makes a download task request by the request.
11031102fn make_download_task_request (
11041103 config : Arc < Config > ,
@@ -1130,7 +1129,11 @@ fn make_download_task_request(
11301129 // 3. None (will use URL-based calculation)
11311130 let content_for_calculating_task_id = header:: get_content_for_calculating_task_id ( & header)
11321131 . or_else ( || {
1133- if config. proxy . registry_mirror . enable_task_id_based_blob_digest {
1132+ if config
1133+ . proxy
1134+ . registry_mirror
1135+ . enable_task_id_based_blob_digest
1136+ {
11341137 let path = request. uri ( ) . path ( ) ;
11351138 extract_blob_digest_from_url ( path)
11361139 } else {
@@ -1298,4 +1301,3 @@ fn empty() -> BoxBody<Bytes, ClientError> {
12981301 . map_err ( |never| match never { } )
12991302 . boxed ( )
13001303}
1301-
You can’t perform that action at this time.
0 commit comments