diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-19 00:10:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-19 00:11:03 +0900 |
| commit | c839244d8d09f3036ebfee8eef7eb6b147e593ab (patch) | |
| tree | fe48c94f2c2e62468beef5ff1a8f3cff6adeef4f /crates/shirabe/src/util/http_downloader.rs | |
| parent | 48839250146b217e2756ed3c0e624fd341b54d6c (diff) | |
| download | php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.tar.gz php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.tar.zst php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.zip | |
fix(compile): fix various compile errors
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/util/http_downloader.rs')
| -rw-r--r-- | crates/shirabe/src/util/http_downloader.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/crates/shirabe/src/util/http_downloader.rs b/crates/shirabe/src/util/http_downloader.rs index 34f0642..97b1f6e 100644 --- a/crates/shirabe/src/util/http_downloader.rs +++ b/crates/shirabe/src/util/http_downloader.rs @@ -148,7 +148,7 @@ impl HttpDownloader { 1, min( 50, - max_jobs_env.as_string().unwrap_or("0").parse().unwrap_or(0), + max_jobs_env.as_deref().unwrap_or("0").parse().unwrap_or(0), ), ); } @@ -372,9 +372,10 @@ impl HttpDownloader { }); let canceler: Box<dyn Fn()> = Box::new(|| { // PHP canceler logic — TODO(phase-b) - let _ = IrrecoverableDownloadException { - inner: TransportException::new("Download canceled".to_string(), 0), - }; + let _ = IrrecoverableDownloadException(shirabe_php_shim::RuntimeException { + message: "Download canceled".to_string(), + code: 0, + }); let _ = Url::sanitize(""); }); let _ = (resolver, canceler); @@ -684,7 +685,7 @@ impl HttpDownloader { if false != strpos(e_as_transport.get_message(), "Resolving timed out").is_some() || false != strpos(e_as_transport.get_message(), "Could not resolve host").is_some() { - Silencer::suppress(); + Silencer::suppress(None); let mut ctx_options: IndexMap<String, PhpMixed> = IndexMap::new(); let mut ssl_map: IndexMap<String, Box<PhpMixed>> = IndexMap::new(); ssl_map.insert("verify_peer".to_string(), Box::new(PhpMixed::Bool(false))); |
