mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-11-16 15:27:46 +00:00
fix: clippy
This commit is contained in:
parent
e0d8b1efde
commit
8f669aa105
2 changed files with 35 additions and 38 deletions
|
@ -5,7 +5,7 @@ mod test {
|
|||
use crate::helper::xvb::algorithm::Algorithm;
|
||||
use crate::helper::{
|
||||
p2pool::{PrivP2poolLocalApi, PrivP2poolNetworkApi},
|
||||
xvb::{priv_stats::RuntimeDonationLevel, priv_stats::RuntimeMode, rounds::round_type},
|
||||
xvb::{priv_stats::RuntimeDonationLevel, priv_stats::RuntimeMode},
|
||||
Helper, Process, ProcessName, ProcessState,
|
||||
};
|
||||
|
||||
|
@ -511,9 +511,8 @@ Uptime = 0h 2m 4s
|
|||
|
||||
use crate::{
|
||||
disk::state::P2pool,
|
||||
helper::{p2pool::PubP2poolApi, xrig::xmrig::PubXmrigApi, xvb::rounds::XvbRound},
|
||||
helper::{p2pool::PubP2poolApi, xrig::xmrig::PubXmrigApi},
|
||||
macros::lock,
|
||||
XVB_TIME_ALGO,
|
||||
};
|
||||
|
||||
use crate::helper::xvb::{public_stats::XvbPubStats, PubXvbApi};
|
||||
|
|
|
@ -782,8 +782,7 @@ fn signal_interrupt(
|
|||
// can update xmrig and check status of state in the same time.
|
||||
// Need to set XMRig to P2Pool if it wasn't. XMRig should have populated this value at his start.
|
||||
// but if xmrig didn't start, don't update it.
|
||||
if lock!(process_xrig).state == ProcessState::Alive {
|
||||
if lock!(gui_api).current_node != Some(XvbNode::P2pool) {
|
||||
if lock!(process_xrig).state == ProcessState::Alive && lock!(gui_api).current_node != Some(XvbNode::P2pool) {
|
||||
spawn(enc!((client, token_xmrig, address, gui_api_xmrig, gui_api_xp, gui_api) async move{
|
||||
let url_api = api_url_xmrig(xp_alive, true);
|
||||
warn!("update xmrig to use node ?");
|
||||
|
@ -818,7 +817,6 @@ fn signal_interrupt(
|
|||
}
|
||||
}
|
||||
));}
|
||||
}
|
||||
},
|
||||
_ => {}
|
||||
} } ),
|
||||
|
|
Loading…
Reference in a new issue