Skip to content

Commit

Permalink
Printlns for CI debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka committed Nov 12, 2020
1 parent 2ee20de commit e7852a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/network/src/protocol/generic_proto/handler/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,11 +722,13 @@ impl ProtocolsHandler for NotifsHandler {

match &mut self.state {
State::Open { .. } => {
println!("is open");
self.state = State::Closed {
pending_opening: Vec::new(),
};
},
State::Opening { out_substreams, .. } => {
println!("is opening");
let pending_opening = out_substreams.iter().map(|s| s.is_none()).collect();
self.state = State::Closed {
pending_opening,
Expand All @@ -737,11 +739,13 @@ impl ProtocolsHandler for NotifsHandler {
));
},
State::OpenDesired { pending_opening, .. } => {
println!("is opendesired");
self.state = State::Closed {
pending_opening: mem::replace(pending_opening, Vec::new()),
};
}
State::Closed { .. } => {},
State::Closed { .. } => {
println!("is closed");},
}

self.events_queue.push_back(
Expand Down

0 comments on commit e7852a2

Please sign in to comment.