fix mycelium impl

This commit is contained in:
Timur Gordon
2025-09-01 16:34:24 +02:00
parent 44b1dd4249
commit 77b4c66a10
6 changed files with 667 additions and 338 deletions

View File

@@ -43,13 +43,13 @@ struct Args {
#[arg(long = "register-secret", value_name = "SECRET")]
register_secrets: Vec<String>,
/// OpenRPC server bind address
#[arg(long, default_value = "127.0.0.1")]
bind_address: String,
/// Mycelium daemon URL
#[arg(long, default_value = "http://127.0.0.1:8990")]
mycelium_url: String,
/// OpenRPC server port
#[arg(long, default_value = "3030")]
port: u16,
/// Mycelium topic for supervisor RPC messages
#[arg(long, default_value = "supervisor.rpc")]
topic: String,
}
#[tokio::main]
@@ -97,7 +97,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}
};
let mut app = SupervisorApp::new(supervisor, args.bind_address, args.port);
let mut app = SupervisorApp::new(supervisor, args.mycelium_url, args.topic);
// Start the complete supervisor application
app.start().await?;