Skip to content

Commit

Permalink
Fix TTL example comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaals authored May 19, 2024
1 parent 8a3e2c2 commit 0cb32bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async fn something_happened_send_notification() -> Result<PushoverResponse, Box<
.set_title("Example push notification sent through Pushover API")
.set_url("https://pushover.net/", Some("Pushover"))
.set_priority(1)
.set_ttl(60) // 60 seconds. Note that setting a TTL will overwrite set_priority to value 2! See: https://pushover.net/api#ttl
.set_ttl(60) // 60 seconds. Note that TTLs will be ignored if the priority is set to 2. See: https://pushover.net/api#ttl
.set_sound(PushoverSound::ALIEN)
.set_timestamp(now)
.build();
Expand Down

0 comments on commit 0cb32bf

Please sign in to comment.