wip: cargo fmt
All checks were successful
Run Check Script / check (pull_request) Successful in 1m16s

This commit is contained in:
Willem 2025-10-28 15:45:02 -04:00
parent 44bf21718c
commit 9ba939bde1
3 changed files with 8 additions and 2 deletions

View File

@ -25,7 +25,9 @@ struct OpnSenseTopology {
#[async_trait] #[async_trait]
impl Topology for OpnSenseTopology { impl Topology for OpnSenseTopology {
async fn ensure_ready(&self) -> Result<PreparationOutcome, PreparationError> { async fn ensure_ready(&self) -> Result<PreparationOutcome, PreparationError> {
Ok(PreparationOutcome::Success{ details: "Success".to_string() }) Ok(PreparationOutcome::Success {
details: "Success".to_string(),
})
} }
fn name(&self) -> &str { fn name(&self) -> &str {
"OpnsenseTopology" "OpnsenseTopology"

View File

@ -25,7 +25,10 @@ impl NodeExporter for OPNSenseFirewall {
})?; })?;
} }
config.node_exporter().enable(true).map_err(|e|ExecutorError::UnexpectedError(e.to_string()))?; config
.node_exporter()
.enable(true)
.map_err(|e| ExecutorError::UnexpectedError(e.to_string()))?;
Ok(()) Ok(())
} }
async fn commit_config(&self) -> Result<(), ExecutorError> { async fn commit_config(&self) -> Result<(), ExecutorError> {

View File

@ -14,6 +14,7 @@ use opnsense_config_xml::OPNsense;
use russh::client; use russh::client;
use serde::Serialize; use serde::Serialize;
use sha2::Digest; use sha2::Digest;
use tokio::time::{sleep, Duration};
use super::{ConfigManager, OPNsenseShell}; use super::{ConfigManager, OPNsenseShell};