Skip to content

Commit

Permalink
Network fork (#1732)
Browse files Browse the repository at this point in the history
Merge pull request #1732

Network fork

* pull/1732/head:
  Network fork
  • Loading branch information
sdbondi committed Apr 18, 2020
2 parents 3126130 + e766bc5 commit 383d506
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions comms/dht/src/store_forward/saf_handler/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ where S: Service<DecryptedDhtMessage, Response = (), Error = PipelineError>

let response_types = vec![
SafResponseType::ForMe,
SafResponseType::InRegion,
SafResponseType::Discovery,
/* SafResponseType::InRegion,
* SafResponseType::Discovery, */
];

for resp_type in response_types {
Expand Down
4 changes: 2 additions & 2 deletions comms/src/connection_manager/wire_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
use std::convert::TryFrom;

pub enum WireMode {
Comms = 0x01,
Comms = 0x02,
Liveness = 0x45, // E
}

Expand All @@ -32,7 +32,7 @@ impl TryFrom<u8> for WireMode {

fn try_from(value: u8) -> Result<Self, Self::Error> {
match value {
0x01 => Ok(WireMode::Comms),
0x02 => Ok(WireMode::Comms),
0x45 => Ok(WireMode::Liveness),
_ => Err(()),
}
Expand Down

0 comments on commit 383d506

Please sign in to comment.