mirror of
https://github.com/rust-lang/cargo
synced 2024-08-28 11:50:23 +00:00
Swap std::sync::mpsc channel with crossbeam_channel
Switching this hoping it closes #7840
This commit is contained in:
parent
c326fcb37e
commit
20ddff8cb6
|
@ -23,6 +23,7 @@ atty = "0.2"
|
|||
bytesize = "1.0"
|
||||
cargo-platform = { path = "crates/cargo-platform", version = "0.1.1" }
|
||||
crates-io = { path = "crates/crates-io", version = "0.31" }
|
||||
crossbeam-channel = "0.4"
|
||||
crossbeam-utils = "0.7"
|
||||
crypto-hash = "0.3.1"
|
||||
curl = { version = "0.4.23", features = ["http2"] }
|
||||
|
|
|
@ -54,11 +54,11 @@ use std::collections::{BTreeMap, HashMap, HashSet};
|
|||
use std::io;
|
||||
use std::marker;
|
||||
use std::mem;
|
||||
use std::sync::mpsc::{channel, Receiver, Sender};
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use anyhow::format_err;
|
||||
use crossbeam_channel::{unbounded, Receiver, Sender};
|
||||
use crossbeam_utils::thread::Scope;
|
||||
use jobserver::{Acquired, Client, HelperThread};
|
||||
use log::{debug, info, trace};
|
||||
|
@ -341,7 +341,7 @@ impl<'a, 'cfg> JobQueue<'a, 'cfg> {
|
|||
let _p = profile::start("executing the job graph");
|
||||
self.queue.queue_finished();
|
||||
|
||||
let (tx, rx) = channel();
|
||||
let (tx, rx) = unbounded();
|
||||
let progress = Progress::with_style("Building", ProgressStyle::Ratio, cx.bcx.config);
|
||||
let state = DrainState {
|
||||
total_units: self.queue.len(),
|
||||
|
|
Loading…
Reference in a new issue