Browse Source

Make get_continuation_token reusable across modules

pull/7320/head
svrforum 6 days ago
parent
commit
1c91b8a8c9
  1. 2
      src/api/core/events.rs

2
src/api/core/events.rs

@ -125,7 +125,7 @@ async fn get_user_events(
}))) })))
} }
fn get_continuation_token(events_json: &[Value]) -> Option<&str> { pub(crate) fn get_continuation_token(events_json: &[Value]) -> Option<&str> {
// When the length of the vec equals the max page_size there probably is more data // When the length of the vec equals the max page_size there probably is more data
// When it is less, then all events are loaded. // When it is less, then all events are loaded.
#[expect(clippy::cast_possible_truncation, reason = "PAGE_SIZE fits within usize")] #[expect(clippy::cast_possible_truncation, reason = "PAGE_SIZE fits within usize")]

Loading…
Cancel
Save