pre bump + rx channel drop should be panic

This commit is contained in:
Alex Janka 2024-01-15 09:26:38 +11:00
parent 89f6cd11c5
commit 66b15fc46e
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View file

@ -2256,7 +2256,7 @@ dependencies = [
[[package]]
name = "tesla-charge-controller"
version = "0.2.2"
version = "0.2.3-prerelease"
dependencies = [
"async-channel",
"chrono",

View file

@ -1,6 +1,6 @@
[package]
name = "tesla-charge-controller"
version = "0.2.2"
version = "0.2.3-prerelease"
edition = "2021"
license = "MITNFA"
description = "Controls Tesla charge rate based on solar charge data"

View file

@ -80,7 +80,7 @@ async fn main() {
_ = interval.tick() => pli.refresh(),
message = pli_receiver.recv() => match message {
Ok(message) => pli.process_request(message),
Err(e) => error!("Error on PLI receive channel: {e:?}")
Err(e) => panic!("Error on PLI receive channel: {e:?}")
}
}
}
@ -111,7 +111,7 @@ async fn main() {
_ = interval.tick() => interface.refresh().await,
message = api_receiver.recv() => match message {
Ok(message) => interface.process_request(message).await,
Err(e) => error!("Error on Tesla receive channel: {e:?}")
Err(e) => panic!("Error on Tesla receive channel: {e:?}")
}
}
}