We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5e2e9a commit ec8bad0Copy full SHA for ec8bad0
1 file changed
bottlecap/src/logs/lambda/processor.rs
@@ -658,12 +658,12 @@ impl LambdaProcessor {
658
if !self.held_logs.contains_key(&request_id) {
659
while self.held_logs.len() >= HELD_LOGS_MAX_KEYS {
660
// Evict the oldest key to ready_logs (without durable context tags).
661
- if let Some(oldest) = self.held_logs_order.pop_front() {
662
- if let Some(evicted) = self.held_logs.remove(&oldest) {
663
- for evicted_log in evicted {
664
- if let Ok(s) = serde_json::to_string(&evicted_log) {
665
- self.ready_logs.push(s);
666
- }
+ if let Some(oldest) = self.held_logs_order.pop_front()
+ && let Some(evicted) = self.held_logs.remove(&oldest)
+ {
+ for evicted_log in evicted {
+ if let Ok(s) = serde_json::to_string(&evicted_log) {
+ self.ready_logs.push(s);
667
}
668
669
0 commit comments