安正超
bd571a575f
fix(io-core,signer): replace unwrap() with proper error handling ( #3150 )
...
* fix(io-core,signer): replace unwrap() with proper error handling
## io-core (issue #653 item 1)
- pool.rs: replace 8 .lock().unwrap() with poisoned recovery
- pool.rs: replace semaphore acquire unwrap with graceful fallback
- deadlock_detector.rs: replace 5 .lock().unwrap() with match/ok
## signer (issue #653 item 1)
- Add SignV2Error enum, try_pre_sign_v2, try_sign_v2
- Replace 14 unwrap() in v2 signing with ? propagation
- Add try_streaming_sign_v4, replace 5 expect("err") with descriptive errors
- get_host_addr returns Result instead of panicking
All backward-compat wrappers preserved. 95 io-core + 18 signer tests pass.
* fix: address signer and pool review comments
* test: update signer v2 string-to-sign test
* fix: address signer and pool review followups
* fix: tighten signer host and pool fallback
2026-05-31 23:40:20 +00:00
Nugine
2525b66658
refactor: replace lazy_static with LazyLock ( #164 )
...
* refactor: replace `lazy_static` with `LazyLock`
* update cursorrules
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
2025-07-10 23:50:46 +08:00
yihong
abd5dff9b5
fix: make lint build and clippy happy ( #71 )
...
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
2025-07-07 09:55:53 +08:00
likewu
26542b741e
request::Builder -> request::Request<Body>
2025-07-04 16:59:15 +08:00
houseme
2e14b32ccd
chore: Add copyright and license headers ( #23 )
...
* chore: Add copyright and license headers
This commit adds the Apache 2.0 license and a copyright notice to the header of all source files. This ensures that the licensing and copyright information is clearly stated within the codebase.
* cargo fmt
* fix
* fmt
* fix clippy
2025-07-02 15:07:47 +08:00
houseme
cb19bbef22
fix:Apply suggestions from clippy 1.88 ( #20 )
2025-07-02 12:14:22 +08:00
weisd
24738dc635
fix: resolve clippy warnings in signer module
...
- Add #[allow(clippy::too_many_arguments)] for functions with 8 parameters
- Replace vec initialization with array where appropriate
- Fix test code warnings by adding #[allow] attributes
- Improve code quality while maintaining functionality
2025-06-30 21:41:34 +08:00
likewu
a770b17e0c
fix clippy
2025-06-28 14:34:27 +08:00
likewu
f38108d20d
fix format
2025-06-28 14:34:21 +08:00
likewu
4ed84a6bc4
separate signer.
...
fix ilm feature.
2025-06-28 14:33:22 +08:00