mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-22 06:47:56 +01:00
Don't default to MQTT 3.1 either
This commit is contained in:
parent
53f871ac49
commit
bdcf3bae67
@ -145,7 +145,6 @@ pub fn load(log: &Logger, config: &Config) -> Result<(ActorMap, Vec<Actor>)> {
|
|||||||
});
|
});
|
||||||
let conn_opts = paho_mqtt::ConnectOptionsBuilder::new()
|
let conn_opts = paho_mqtt::ConnectOptionsBuilder::new()
|
||||||
.keep_alive_interval(Duration::from_secs(20))
|
.keep_alive_interval(Duration::from_secs(20))
|
||||||
.clean_session(false)
|
|
||||||
.finalize();
|
.finalize();
|
||||||
let tok = mqtt.connect(conn_opts);
|
let tok = mqtt.connect(conn_opts);
|
||||||
smol::block_on(tok)?;
|
smol::block_on(tok)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user