mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-22 08:01:47 +03:00
fix error and warning, remove dead code
This commit is contained in:
parent
86a5fe382a
commit
d23fb78c76
@ -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!(
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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::{
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user