copilot fixes

This commit is contained in:
Mick Grove 2026-04-29 23:42:33 -07:00
commit c94bd89195
2 changed files with 8 additions and 2 deletions

View file

@ -36,8 +36,8 @@ rules:
- words:
- '"id"'
type: WordMatch
- type: Word
match_words:
- words:
- '"type":"Unauthorized"'
type: WordMatch
negative: true
url: https://api.airbrake.io/api/v4/projects?key={{ TOKEN }}

View file

@ -723,6 +723,12 @@ async fn run_sequential_scan(
})();
input_roots.extend(streamed_roots);
// Drop the receiver before joining producers. If `scan_result` is Err,
// the loop exited early and producers could be blocked on `send` against
// a full bounded channel; dropping `repo_rx` makes those sends return Err
// so the threads can exit and `join()` doesn't deadlock.
drop(repo_rx);
if let Some(handle) = repo_clone_handle {
let _ = handle.join();
}