Skip to content

Commit

Permalink
rust: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-mman authored and svix-james committed Feb 18, 2025
1 parent c0f9020 commit a9128ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/src/api/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl Svix {
/// the cost of TLS initialization.
pub fn with_token(&self, token: String) -> Self {
let base_path = self.server_url.clone().unwrap_or_else(|| {
match token.split('.').last() {
match token.split('.').next_back() {
Some("us") => "https://api.us.svix.com",
Some("eu") => "https://api.eu.svix.com",
Some("in") => "https://api.in.svix.com",
Expand Down
4 changes: 2 additions & 2 deletions server/svix-server/src/queue/redis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
//!
//! This implementation uses the following data structures:
//! - A "tasks to be processed" stream - which is what the consumer listens to for tasks.
//! AKA: Main
//! AKA: Main
//! - A ZSET for delayed tasks with the sort order being the time-to-be-delivered
//! AKA: Delayed
//! AKA: Delayed
//!
//! - Tasks in the delayed queue are prefixed with a ksuid so that we can know the timestamp of when
//! they should be executed.
Expand Down

0 comments on commit a9128ab

Please sign in to comment.