Skip to content

Commit 37108db

Browse files
committed
Fix pagination
1 parent 0ae6a58 commit 37108db

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rusty_falcon"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
authors = ["CrowdStrike Inc"]
55
description = "Rust bindings for CrowdStrike Falcon API"
66
homepage = "https://github.com/CrowdStrike/rusty-falcon"

examples/falcon_spotlight_vulnerabilities.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ async fn main() {
3838
}
3939

4040
after = match response.meta.next() {
41-
None => break,
42-
Some(pagination_token) => Some(pagination_token.to_owned()),
41+
Some(pagination_token) if pagination_token.is_empty() => {
42+
Some(pagination_token.to_owned())
43+
}
44+
_ => break,
4345
};
4446
}
4547
print!("]");

0 commit comments

Comments
 (0)