diff --git a/kinode/src/http/server.rs b/kinode/src/http/server.rs index a3259f94..dd230099 100644 --- a/kinode/src/http/server.rs +++ b/kinode/src/http/server.rs @@ -404,7 +404,7 @@ async fn ws_handler( .send(&print_tx) .await; - if ws_senders.len() >= WS_SELF_IMPOSED_MAX_CONNECTIONS { + if ws_senders.len() >= WS_SELF_IMPOSED_MAX_CONNECTIONS as usize { Printout::new( 0, format!( diff --git a/kinode/src/kernel/mod.rs b/kinode/src/kernel/mod.rs index 6b176b90..4f7a4658 100644 --- a/kinode/src/kernel/mod.rs +++ b/kinode/src/kernel/mod.rs @@ -56,7 +56,7 @@ pub struct RestartBackoff { /// how many times has process tried to restart in a row consecutive_attempts: u32, /// task that will do the restart after wait time has elapsed - restart_handle: Option>, + _restart_handle: Option>, } /// persist kernel's process_map state for next bootup diff --git a/kinode/src/kernel/process.rs b/kinode/src/kernel/process.rs index 375fa3ac..94aa8ea9 100644 --- a/kinode/src/kernel/process.rs +++ b/kinode/src/kernel/process.rs @@ -515,7 +515,7 @@ pub async fn make_process_loop( *restart_backoff_lock = Some(RestartBackoff { next_soonest_restart_time, consecutive_attempts, - restart_handle, + _restart_handle: restart_handle, }); } // if requests, fire them diff --git a/kinode/src/register.rs b/kinode/src/register.rs index dfa39f28..8c9d898c 100644 --- a/kinode/src/register.rs +++ b/kinode/src/register.rs @@ -9,8 +9,7 @@ use alloy_primitives::{Address as EthAddress, Bytes, FixedBytes, U256}; use alloy_sol_types::{eip712_domain, SolCall, SolStruct}; use base64::{engine::general_purpose::STANDARD as base64_standard, Engine}; use lib::types::core::{ - BootInfo, Identity, ImportKeyfileInfo, Keyfile, LoginAndResetInfo, LoginInfo, NodeRouting, - UnencryptedIdentity, + BootInfo, Identity, ImportKeyfileInfo, Keyfile, LoginInfo, NodeRouting, UnencryptedIdentity, }; use ring::{rand::SystemRandom, signature, signature::KeyPair}; use std::{ diff --git a/lib/src/core.rs b/lib/src/core.rs index e27b26ea..c6d80bb9 100644 --- a/lib/src/core.rs +++ b/lib/src/core.rs @@ -1085,12 +1085,6 @@ pub struct LoginInfo { pub subdomain: Option, } -#[derive(Debug, Clone, Serialize, Deserialize)] -pub struct LoginAndResetInfo { - pub password_hash: String, - pub direct: bool, -} - #[derive(Clone, Debug, Serialize, Deserialize)] pub struct Identity { pub name: NodeId,