Skip to content

Commit

Permalink
fix logic error in indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Feb 13, 2024
1 parent d009352 commit ba3a958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/src/commands/app/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl crate::commands::AsyncCliCommand for CmdAppLogs {
while let Some(logs) = logs_stream.next().await {
let logs = logs?;

let limit = std::cmp::max(logs.len(), rem);
let limit = std::cmp::min(logs.len(), rem);

let logs = &logs[..limit];
if !logs.is_empty() {
Expand Down

0 comments on commit ba3a958

Please sign in to comment.