fix mycelium impl
This commit is contained in:
@@ -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?;
|
||||
|
Reference in New Issue
Block a user