Skip to content

Commit

Permalink
Detecting empty continue token (metalbear-co#2734)
Browse files Browse the repository at this point in the history
* Detecting empty continue token

* Style

* Changelog update
  • Loading branch information
Razz4780 authored Sep 5, 2024
1 parent b605580 commit 0abe84b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/mirrord-ls-hanging.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed `mirrord ls` hanging when there is a lot of possible targets in the cluster.
2 changes: 1 addition & 1 deletion mirrord/kube/src/api/kubernetes/seeker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl KubeResourceSeeker<'_> {
yield Ok(resource);
}

if let Some(continue_token) = resource.metadata.continue_ {
if let Some(continue_token) = resource.metadata.continue_ && !continue_token.is_empty() {
params = params.continue_token(&continue_token);
} else {
break;
Expand Down

0 comments on commit 0abe84b

Please sign in to comment.