Remove hack

This commit is contained in:
Jon Häggblad
2023-10-27 10:54:53 +02:00
parent a17d36fd89
commit 65d93b2b18
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ pub struct Init {
with_network_requester: bool,
/// Allows this gateway to run an embedded network requester for minimal network overhead
#[clap(long, conflicts_with = "with_network_requester")]
#[clap(long, hide = true, conflicts_with = "with_network_requester")]
with_ip_forwarder: bool,
// ##### NETWORK REQUESTER FLAGS #####
+1 -1
View File
@@ -91,7 +91,7 @@ pub struct Run {
with_network_requester: Option<bool>,
/// Allows this gateway to run an embedded network requester for minimal network overhead
#[arg(long, conflicts_with = "with_network_requester")]
#[arg(long, hide = true, conflicts_with = "with_network_requester")]
with_ip_forwarder: Option<bool>,
// ##### NETWORK REQUESTER FLAGS #####
+4 -4
View File
@@ -476,9 +476,7 @@ impl<St> Gateway<St> {
});
}
// WIP(JON)
// let nr_request_filter = if self.config.network_requester.enabled {
let nr_request_filter = if false {
let nr_request_filter = if self.config.network_requester.enabled {
let embedded_nr = self
.start_network_requester(
mix_forwarding_channel.clone(),
@@ -493,7 +491,9 @@ impl<St> Gateway<St> {
None
};
if true {
// NOTE: this is mutually exclusive with the network requester (for now). This is reflected
// in the command line arguments as well.
if self.config.ip_forwarder.enabled {
let embedded_ip_sp = self
.start_ip_service_provider(
mix_forwarding_channel.clone(),