Skip to content

Commit ae65856

Browse files
committed
Removed commented code
1 parent 96e8058 commit ae65856

File tree

4 files changed

+24
-654
lines changed

4 files changed

+24
-654
lines changed

node/src/p2p/callbacks/p2p_callbacks_actions.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,15 @@ pub enum P2pCallbacksAction {
4242
}
4343

4444
impl redux::EnablingCondition<crate::State> for P2pCallbacksAction {
45-
fn is_enabled(&self, state: &crate::State, time: redux::Timestamp) -> bool {
46-
true
45+
fn is_enabled(&self, _state: &crate::State, _time: redux::Timestamp) -> bool {
46+
match self {
47+
P2pCallbacksAction::P2pChannelsRpcReady { .. } => true,
48+
P2pCallbacksAction::P2pChannelsRpcTimeout { .. } => true,
49+
P2pCallbacksAction::P2pChannelsRpcResponseReceived { .. } => true,
50+
P2pCallbacksAction::P2pChannelsRpcRequestReceived { .. } => true,
51+
P2pCallbacksAction::P2pChannelsStreamingRpcReady => true,
52+
P2pCallbacksAction::P2pChannelsStreamingRpcTimeout { .. } => true,
53+
P2pCallbacksAction::P2pChannelsStreamingRpcResponseReceived { .. } => true,
54+
}
4755
}
4856
}

0 commit comments

Comments
 (0)