man these two.

765fbe2 · gmorell · 2026-01-12 02:50

2 files +4 -5

Files changed

modified src/main.rs
+4 −5
@@ -812,13 +812,12 @@ impl Koco {
812 812 self.runtime.spawn(async move {
813 813 loop {
814 814 // Create MQTT client
815 − let create_opts = match paho_mqtt::CreateOptionsBuilder::new()
815 + let opts = paho_mqtt::CreateOptionsBuilder::new()
816 816 .server_uri(&mqtt_host)
817 817 .client_id("koco-theme-subscriber")
818 − .finalize()
819 − {
820 − opts => opts,
821 − };
818 + .finalize();
819 +
820 + let create_opts = opts;
822 821
823 822 let mut client = match paho_mqtt::AsyncClient::new(create_opts) {
824 823 Ok(c) => c,

Parents: 07c9619