Skip to content

Simplify the code from pr #2761#2774

Open
sylvestre wants to merge 2 commits into
mozilla:mainfrom
sylvestre:pr-2761
Open

Simplify the code from pr #2761#2774
sylvestre wants to merge 2 commits into
mozilla:mainfrom
sylvestre:pr-2761

Conversation

@sylvestre

@sylvestre sylvestre commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

see pr #2761

…arms

Replace the hand-rolled `match ... => return Err(err)` arms in the reader
and handler loops with `?`. The mpsc channel now carries a plain
SccacheRequest (stream errors are unwrapped in the reader via `req?`), so
the handler's outer Ok/Err match goes away and `.await??` propagates the
join and call errors. No behavior change.

Also document why `_handle` must stay bound: it is the AbortOnDropHandle
that drives cancellation when the client disconnects.
@codecov-commenter

codecov-commenter commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 59.77654% with 72 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.91%. Comparing base (7cd4f2c) to head (a2377b1).

Files with missing lines Patch % Lines
src/server.rs 59.77% 72 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2774   +/-   ##
=======================================
  Coverage   70.90%   70.91%           
=======================================
  Files          71       71           
  Lines       40393    40374   -19     
=======================================
- Hits        28642    28630   -12     
+ Misses      11751    11744    -7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Drop the extra `async move { ... }.await` wrapper (and its
#[allow(clippy::redundant_async_block)] and TODO) that was kept only to
minimize the whitespace diff against upstream/main, and de-indent the
task body one level. Purely a cleanup; no behavior change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants