Skip to content

Commit

Permalink
Merge pull request #2 from nihaals/ttl-comment
Browse files Browse the repository at this point in the history
Fix TTL example comment
  • Loading branch information
Emka877 authored May 19, 2024
2 parents 8a3e2c2 + 0cb32bf commit 03cdf86
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 03cdf86

Please sign in to comment.