@@ -61,7 +61,7 @@ use std::sync::atomic::{AtomicU64, Ordering};
6161use std:: sync:: Arc ;
6262use std:: thread:: { self , JoinHandle } ;
6363
64- use crossbeam_channel :: { Receiver , Sender , TryRecvError , TrySendError } ;
64+ use crossbeam :: channel :: { Receiver , Sender , TryRecvError , TrySendError } ;
6565
6666use bitcoin:: secp256k1:: key:: PublicKey ;
6767use lightning:: ln:: msgs:: { ChannelMessageHandler , NetAddress , RoutingMessageHandler } ;
@@ -272,9 +272,9 @@ fn init_channels() -> (
272272 Sender < WriterCommand > ,
273273 Receiver < WriterCommand > ,
274274) {
275- let ( reader_cmd_tx, reader_cmd_rx) = crossbeam_channel :: unbounded ( ) ;
275+ let ( reader_cmd_tx, reader_cmd_rx) = crossbeam :: channel :: unbounded ( ) ;
276276
277- let ( writer_cmd_tx, writer_cmd_rx) = crossbeam_channel :: bounded ( 2 ) ;
277+ let ( writer_cmd_tx, writer_cmd_rx) = crossbeam :: channel :: bounded ( 2 ) ;
278278
279279 ( reader_cmd_tx, reader_cmd_rx, writer_cmd_tx, writer_cmd_rx)
280280}
@@ -883,6 +883,8 @@ mod tests {
883883 use super :: handle_connection;
884884 use super :: ConnectionType :: * ;
885885
886+ use crossbeam:: channel;
887+
886888 use std:: mem;
887889 use std:: net:: { TcpListener , TcpStream } ;
888890 use std:: sync:: atomic:: { AtomicBool , Ordering } ;
@@ -907,8 +909,8 @@ mod tests {
907909 /// connected (and disconnected)
908910 struct MsgHandler {
909911 expected_pubkey : PublicKey ,
910- connected_tx : crossbeam_channel :: Sender < ( ) > ,
911- disconnected_tx : crossbeam_channel :: Sender < ( ) > ,
912+ connected_tx : channel :: Sender < ( ) > ,
913+ disconnected_tx : channel :: Sender < ( ) > ,
912914 disconnected_flag : AtomicBool ,
913915 msg_events : Mutex < Vec < MessageSendEvent > > ,
914916 }
@@ -1059,8 +1061,8 @@ mod tests {
10591061 let b_pub = PublicKey :: from_secret_key ( & secp_ctx, & b_key) ;
10601062
10611063 // Initialize node A
1062- let ( a_connected_tx, a_connected_rx) = crossbeam_channel :: bounded ( 1 ) ;
1063- let ( a_disconnected_tx, a_disconnected_rx) = crossbeam_channel :: bounded ( 1 ) ;
1064+ let ( a_connected_tx, a_connected_rx) = channel :: bounded ( 1 ) ;
1065+ let ( a_disconnected_tx, a_disconnected_rx) = channel :: bounded ( 1 ) ;
10641066 let a_handler = Arc :: new ( MsgHandler {
10651067 expected_pubkey : b_pub,
10661068 connected_tx : a_connected_tx,
@@ -1080,8 +1082,8 @@ mod tests {
10801082 ) ) ;
10811083
10821084 // Initialize node B
1083- let ( b_connected_tx, b_connected_rx) = crossbeam_channel :: bounded ( 1 ) ;
1084- let ( b_disconnected_tx, b_disconnected_rx) = crossbeam_channel :: bounded ( 1 ) ;
1085+ let ( b_connected_tx, b_connected_rx) = channel :: bounded ( 1 ) ;
1086+ let ( b_disconnected_tx, b_disconnected_rx) = channel :: bounded ( 1 ) ;
10851087 let b_handler = Arc :: new ( MsgHandler {
10861088 expected_pubkey : a_pub,
10871089 connected_tx : b_connected_tx,
0 commit comments