forked from mirrors/kingfisher
copilot fixes
This commit is contained in:
parent
327342a1bb
commit
c94bd89195
2 changed files with 8 additions and 2 deletions
|
|
@ -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 }}
|
||||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue