Skip to content

Commit

Permalink
check only last record
Browse files Browse the repository at this point in the history
  • Loading branch information
atimin committed Oct 21, 2024
1 parent cc09693 commit febb238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ async fn reader(
.clone();

let stream = bucket.query(&entry.name)
.start(SystemTime::now() - Duration::from_secs(60))
.limit(5).send().await?;
.start(SystemTime::now() - interval_ms*2)
.limit(1).send().await?;

pin!(stream);
while let Some(result) = stream.next().await {
Expand Down

0 comments on commit febb238

Please sign in to comment.