File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
server/svix-server/src/queue Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ impl Svix {
7272 /// the cost of TLS initialization.
7373 pub fn with_token ( & self , token : String ) -> Self {
7474 let base_path = self . server_url . clone ( ) . unwrap_or_else ( || {
75- match token. split ( '.' ) . last ( ) {
75+ match token. split ( '.' ) . next_back ( ) {
7676 Some ( "us" ) => "https://api.us.svix.com" ,
7777 Some ( "eu" ) => "https://api.eu.svix.com" ,
7878 Some ( "in" ) => "https://api.in.svix.com" ,
Original file line number Diff line number Diff line change 1111//!
1212//! This implementation uses the following data structures:
1313//! - A "tasks to be processed" stream - which is what the consumer listens to for tasks.
14- //! AKA: Main
14+ //! AKA: Main
1515//! - A ZSET for delayed tasks with the sort order being the time-to-be-delivered
16- //! AKA: Delayed
16+ //! AKA: Delayed
1717//!
1818//! - Tasks in the delayed queue are prefixed with a ksuid so that we can know the timestamp of when
1919//! they should be executed.
You can’t perform that action at this time.
0 commit comments