Skip to content

Commit

Permalink
wip: adding threshold and pulse: expect green
Browse files Browse the repository at this point in the history
  • Loading branch information
cablehead committed Jun 12, 2024
1 parent f8d65d4 commit 6566144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl<'de> Deserialize<'de> for FollowOption {
D: Deserializer<'de>,
{
let s: String = Deserialize::deserialize(deserializer)?;
if s.is_empty() || s == "follow" {
if s.is_empty() || s == "follow" || s == "yes" {
Ok(FollowOption::On)
} else if let Ok(duration) = s.parse::<u64>() {
Ok(FollowOption::WithHeartbeat(Duration::from_millis(duration)))
Expand Down

0 comments on commit 6566144

Please sign in to comment.