File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -62,18 +62,20 @@ pub fn build_app_state(
6262 . unwrap_or_else ( |_| "https://media.forgecdn.net" . to_string ( ) ) ,
6363 curseforge_avatar_cdn_fallback_url : env:: var ( "CURSEFORGE_AVATAR_CDN_FALLBACK_URL" )
6464 . unwrap_or_else ( |_| "https://media.forgecdn.net" . to_string ( ) ) ,
65- curseforge_avatar_cdn_primary_percentage : env:: var ( "CURSEFORGE_AVATAR_CDN_PRIMARY_PERCENTAGE" )
66- . unwrap_or_else ( |_| "100" . to_string ( ) )
67- . parse :: < u8 > ( )
68- . unwrap_or ( 100 ) ,
65+ curseforge_avatar_cdn_primary_percentage : env:: var (
66+ "CURSEFORGE_AVATAR_CDN_PRIMARY_PERCENTAGE" ,
67+ )
68+ . unwrap_or_else ( |_| "100" . to_string ( ) )
69+ . parse :: < u8 > ( )
70+ . unwrap_or ( 100 ) ,
6971 modrinth_avatar_cdn_url : env:: var ( "MODRINTH_AVATAR_CDN_URL" )
7072 . unwrap_or_else ( |_| "https://cdn.modrinth.com" . to_string ( ) ) ,
7173 modrinth_avatar_cdn_fallback_url : env:: var ( "MODRINTH_AVATAR_CDN_FALLBACK_URL" )
7274 . unwrap_or_else ( |_| "https://cdn.modrinth.com" . to_string ( ) ) ,
7375 modrinth_avatar_cdn_primary_percentage : env:: var ( "MODRINTH_AVATAR_CDN_PRIMARY_PERCENTAGE" )
74- . unwrap_or_else ( |_| "100" . to_string ( ) )
75- . parse :: < u8 > ( )
76- . unwrap_or ( 100 ) ,
76+ . unwrap_or_else ( |_| "100" . to_string ( ) )
77+ . parse :: < u8 > ( )
78+ . unwrap_or ( 100 ) ,
7779 http_client : Client :: new ( ) , // 创建一个共享的 HTTP 客户端
7880 }
7981}
You can’t perform that action at this time.
0 commit comments