Skip to content

Commit

Permalink
cargo update (#33)
Browse files Browse the repository at this point in the history
Specifically, we need rumqttc 0.10 which adds a fix for Windows builds.

Bumping to 0.5.1.
  • Loading branch information
celsworth authored Nov 2, 2021
1 parent a273cc6 commit f8770cd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
38 changes: 19 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lxp-bridge"
version = "0.5.0"
version = "0.5.1"
authors = ["Chris Elsworth <[email protected]>"]
edition = "2018"
repository = "https://github.com/celsworth/lxp-bridge"
Expand All @@ -16,7 +16,7 @@ net2 = "~0.2"
nom = "~7"
nom-derive = "~0.10"
num_enum = "~0.5"
rumqttc = "~0.9"
rumqttc = "~0.10"
serde = { version = "~1 ", features = ["derive"] }
serde_json = "~1"
serde_yaml = "~0.8"
Expand Down
2 changes: 1 addition & 1 deletion src/mqtt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl Mqtt {

let mut options = MqttOptions::new("lxp-bridge", &m.host, m.port);

options.set_keep_alive(60);
options.set_keep_alive(std::time::Duration::from_secs(60));
if let (Some(u), Some(p)) = (&m.username, &m.password) {
options.set_credentials(u, p);
}
Expand Down

0 comments on commit f8770cd

Please sign in to comment.