Skip to content

Commit 272000a

Browse files
committed
fix
1 parent 80986c0 commit 272000a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/common/ttl_map.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ mod tests {
364364
for _ in 10..20 {
365365
TTLMap::<String, i32>::gc(ttl_map.time.clone(), &ttl_map.buckets);
366366
}
367-
assert_eventually(|| ttl_map.data.len() == 0, Duration::from_millis(100)).await;
367+
assert_eventually(|| ttl_map.data.is_empty(), Duration::from_millis(100)).await;
368368
// All entries expired
369369
}
370370

@@ -421,7 +421,7 @@ mod tests {
421421
handle.await.unwrap();
422422
}
423423

424-
assert_eventually(|| ttl_map.data.len() == 0, Duration::from_millis(20)).await;
424+
assert_eventually(|| ttl_map.data.is_empty(), Duration::from_millis(20)).await;
425425
}
426426

427427
#[tokio::test]
@@ -442,7 +442,7 @@ mod tests {
442442
}
443443

444444
// Entry should be expired and time should have wrapped
445-
assert_eventually(|| ttl_map.data.len() == 0, Duration::from_millis(100)).await;
445+
assert_eventually(|| ttl_map.data.is_empty(), Duration::from_millis(100)).await;
446446
let final_time = ttl_map.time.load(Ordering::SeqCst);
447447
assert!(final_time < 100);
448448
}
@@ -539,6 +539,6 @@ mod tests {
539539
for _ in 0..5 {
540540
TTLMap::<String, i32>::gc(ttl_map.time.clone(), &ttl_map.buckets);
541541
}
542-
assert_eventually(|| ttl_map.data.len() == 0, Duration::from_millis(100)).await;
542+
assert_eventually(|| ttl_map.data.is_empty(), Duration::from_millis(100)).await;
543543
}
544544
}

src/execution_plans/network_coalesce.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ use tonic::metadata::MetadataMap;
6161
/// This node has two variants.
6262
/// 1. Pending: it acts as a placeholder for the distributed optimization step to mark it as ready.
6363
/// 2. Ready: runs within a distributed stage and queries the next input stage over the network
64-
/// using Arrow Flight.
64+
/// using Arrow Flight.
6565
#[derive(Debug, Clone)]
6666
pub enum NetworkCoalesceExec {
6767
Pending(NetworkCoalescePending),

src/execution_plans/network_shuffle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ use tonic::metadata::MetadataMap;
111111
/// This node has two variants.
112112
/// 1. Pending: it acts as a placeholder for the distributed optimization step to mark it as ready.
113113
/// 2. Ready: runs within a distributed stage and queries the next input stage over the network
114-
/// using Arrow Flight.
114+
/// using Arrow Flight.
115115
#[derive(Debug, Clone)]
116116
pub enum NetworkShuffleExec {
117117
Pending(NetworkShufflePendingExec),

0 commit comments

Comments
 (0)