From 78fb3c22932f75071edf629b94d15ded47072b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Tue, 9 Apr 2024 16:26:54 +0100 Subject: [PATCH] run http api by default --- gateway/src/node/mod.rs | 4 ++-- mixnode/src/node/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gateway/src/node/mod.rs b/gateway/src/node/mod.rs index 08af357093..53607a3dfb 100644 --- a/gateway/src/node/mod.rs +++ b/gateway/src/node/mod.rs @@ -150,7 +150,7 @@ impl Gateway { network_requester_opts, ip_packet_router_opts, client_registry: Arc::new(DashMap::new()), - run_http_server: false, + run_http_server: true, task_client: None, }) } @@ -171,7 +171,7 @@ impl Gateway { sphinx_keypair, storage, client_registry: Arc::new(DashMap::new()), - run_http_server: false, + run_http_server: true, task_client: None, } } diff --git a/mixnode/src/node/mod.rs b/mixnode/src/node/mod.rs index 8674d6ffe0..0043113658 100644 --- a/mixnode/src/node/mod.rs +++ b/mixnode/src/node/mod.rs @@ -46,7 +46,7 @@ pub struct MixNode { impl MixNode { pub fn new(config: Config) -> Result { Ok(MixNode { - run_http_server: false, + run_http_server: true, descriptor: Self::load_node_description(&config), identity_keypair: Arc::new(load_identity_keys(&config)?), sphinx_keypair: Arc::new(load_sphinx_keys(&config)?), @@ -64,7 +64,7 @@ impl MixNode { sphinx_keypair: Arc, ) -> Self { MixNode { - run_http_server: false, + run_http_server: true, task_client: None, config, descriptor,