mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-19 00:04:25 +01:00
broker: make Settings struct Copy, pass copies around
This commit is contained in:
@@ -29,7 +29,7 @@ pub async fn start_broker(
|
||||
status_sender: mpsc::Sender<bool>,
|
||||
error_sender: broadcast::Sender<Vec<u8>>,
|
||||
expected_client_id: &str,
|
||||
settings: &Settings,
|
||||
settings: Settings,
|
||||
) {
|
||||
let config = config(settings);
|
||||
let client_id = expected_client_id.to_string();
|
||||
@@ -144,7 +144,7 @@ fn metrics_to_status(metrics: ConnectionMetrics, client_connected: bool) -> Opti
|
||||
}
|
||||
}
|
||||
|
||||
fn config(settings: &Settings) -> Config {
|
||||
fn config(settings: Settings) -> Config {
|
||||
use librumqttd::rumqttlog::Config as RouterConfig;
|
||||
use librumqttd::{ConnectionSettings, SphinxLoginCredentials, ConsoleSettings, ServerSettings};
|
||||
use std::collections::HashMap;
|
||||
|
||||
Reference in New Issue
Block a user