aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2025-06-27 21:45:29 +0100
committerTomasz Kramkowski <tomasz@kramkow.ski>2025-06-27 21:46:51 +0100
commitce71a662f977c9dd3790c62620ebd0568276b05f (patch)
tree9543f0e4f27932a1bbafcf073ce7f2d88c51224a /src
parent9c4df3969e21b2d82d34e379b05d2d7ae2e8c29f (diff)
downloadmqttr-ce71a662f977c9dd3790c62620ebd0568276b05f.tar.gz
mqttr-ce71a662f977c9dd3790c62620ebd0568276b05f.tar.xz
mqttr-ce71a662f977c9dd3790c62620ebd0568276b05f.zip
Make QoS 2 (ExactlyOnce) the defaultHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index bc59b0b..0ba13f4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -75,7 +75,7 @@ async fn main() -> anyhow::Result<()> {
let (client, mut event_loop) = conf.mqtt_client();
for topic in conf.routes.keys() {
// TODO: Configurable subscription QoS
- if let Err(e) = client.subscribe(topic, QoS::AtMostOnce).await {
+ if let Err(e) = client.subscribe(topic, QoS::ExactlyOnce).await {
eprintln!("warning: Failed to subscribe to '{topic}': {e:?}");
}
}