mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Replace mpsc with crossbeam/servo channel, update ipc-channel
Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
This commit is contained in:
parent
b977b4994c
commit
2a996fbc8f
89 changed files with 341 additions and 377 deletions
|
@ -9,8 +9,8 @@
|
|||
use ipc_channel::ipc::{self, IpcSender};
|
||||
use ipc_channel::router::ROUTER;
|
||||
use serde;
|
||||
use servo_channel::Sender;
|
||||
use std::marker::Send;
|
||||
use std::sync::mpsc::Sender;
|
||||
|
||||
/// A trait to abstract away the various kinds of message senders we use.
|
||||
pub trait OpaqueSender<T> {
|
||||
|
@ -22,7 +22,7 @@ impl<T> OpaqueSender<T> for Sender<T> {
|
|||
fn send(&self, message: T) {
|
||||
if let Err(e) = Sender::send(self, message) {
|
||||
warn!(
|
||||
"Error communicating with the target thread from the profiler: {}",
|
||||
"Error communicating with the target thread from the profiler: {:?}",
|
||||
e
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue