feat: Implement NginxHandler with reload, stop, validate, and config management methods
This commit is contained in:
@@ -14,6 +14,7 @@ use crate::connector::master::{MasterConnector, MasterConnectorTrait, ssh::SshMa
|
||||
mod cli;
|
||||
mod config;
|
||||
mod connector;
|
||||
mod service;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
@@ -60,13 +61,13 @@ async fn main() {
|
||||
}
|
||||
|
||||
// send a dummy heartbeat to verify the connection is working
|
||||
let client = master_connector.get_client();
|
||||
let mut client = master_connector.get_client().lock().await.clone();
|
||||
|
||||
let request = nxmesh_proto::HealthReport {
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
match client.lock().await.report_health(request).await {
|
||||
match client.report_health(request).await {
|
||||
Ok(_) => info!("Successfully sent health report to master."),
|
||||
Err(e) => {
|
||||
error!("Failed to send health report to master: {}", e);
|
||||
|
||||
Reference in New Issue
Block a user