fix error and warning, remove dead code

This commit is contained in:
dr-frmr 2024-11-15 17:05:07 -05:00
parent 86a5fe382a
commit d23fb78c76
No known key found for this signature in database
5 changed files with 4 additions and 11 deletions

View File

@ -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!(

View File

@ -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<JoinHandle<()>>,
_restart_handle: Option<JoinHandle<()>>,
}
/// persist kernel's process_map state for next bootup

View File

@ -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

View File

@ -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::{

View File

@ -1085,12 +1085,6 @@ pub struct LoginInfo {
pub subdomain: Option<String>,
}
#[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,