File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const ANALYZE_TIMEOUT_SECS: u64 = 180;
2828
2929/// Where users upgrade their plan — shown when a free-tier diff is too
3030/// large to analyze.
31- const PRICING_URL : & str = "https://commitor.dev/pricing " ;
31+ const PRICING_URL : & str = "https://commitor.smasduq.xyz/#pro " ;
3232
3333/// Free-tier client cap on diff size. The backend enforces its own
3434/// `max_length`; we stop just short of that so a free request never
@@ -417,20 +417,18 @@ fn describe_diff_too_large(body: &str) -> String {
417417 . and_then ( |m| m. as_str ( ) )
418418 . map ( |m| m. to_string ( ) )
419419 . unwrap_or_else ( || {
420- "This change is too large to analyze on your plan. Upgrade at \
421- https://commitor.dev/pricing for larger diffs."
422- . to_string ( )
420+ format ! (
421+ "This change is too large to analyze on your plan. Upgrade at {PRICING_URL} for larger diffs."
422+ )
423423 } ) ,
424- Err ( _) => {
425- "This change is too large to analyze on your plan. Upgrade at \
426- https://commitor.dev/pricing for larger diffs."
427- . to_string ( )
428- }
424+ Err ( _) => format ! (
425+ "This change is too large to analyze on your plan. Upgrade at {PRICING_URL} for larger diffs."
426+ ) ,
429427 }
430428}
431429
432430fn describe_rate_limit ( body : & str ) -> String {
433- let pricing = "https://commitor.dev/pricing" ;
431+ let pricing = PRICING_URL ;
434432 match serde_json:: from_str :: < serde_json:: Value > ( body) {
435433 Ok ( v) => {
436434 let limit = v. get ( "limit" ) . and_then ( |l| l. as_u64 ( ) ) ;
You can’t perform that action at this time.
0 commit comments