Skip to content

Commit 0173b76

Browse files
committed
Run cargo fmt
1 parent 4da0ef9 commit 0173b76

File tree

7 files changed

+19
-17
lines changed

7 files changed

+19
-17
lines changed

src/flight_service/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
mod do_get;
22
mod do_put;
33
mod service;
4-
mod stream_partitioner_registry;
54
mod session_builder;
5+
mod stream_partitioner_registry;
66

77
pub(crate) use do_get::DoGet;
88
pub(crate) use do_put::DoPut;
99

1010
pub use service::ArrowFlightEndpoint;
11-
pub use session_builder::SessionBuilder;
11+
pub use session_builder::SessionBuilder;

src/stage_delegation/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ pub struct ActorContext {
2121
#[prost(uint64, tag = "1")]
2222
pub caller_actor_idx: u64,
2323
#[prost(uint64, tag = "2")]
24-
pub actor_idx: u64
25-
}
24+
pub actor_idx: u64,
25+
}

src/stage_delegation/delegation.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,9 @@ mod tests {
238238
let id1 = stage_id1.clone();
239239
let id2 = stage_id2.clone();
240240
let wait_task1 =
241-
tokio::spawn(
242-
async move { delegation_clone1.wait_for_delegate_info(id1, 0).await },
243-
);
241+
tokio::spawn(async move { delegation_clone1.wait_for_delegate_info(id1, 0).await });
244242
let wait_task2 =
245-
tokio::spawn(
246-
async move { delegation_clone2.wait_for_delegate_info(id2, 0).await },
247-
);
243+
tokio::spawn(async move { delegation_clone2.wait_for_delegate_info(id2, 0).await });
248244

249245
// Give wait tasks a moment to start
250246
tokio::time::sleep(Duration::from_millis(10)).await;

src/stage_delegation/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
mod context;
22
mod delegation;
33

4-
pub use context::{StageContext, ActorContext};
4+
pub use context::{ActorContext, StageContext};
55
pub use delegation::StageDelegation;

src/test_utils/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
mod mock_exec;
33

44
#[cfg(test)]
5-
pub use mock_exec::MockExec;
5+
pub use mock_exec::MockExec;

tests/common/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1+
pub mod insta;
12
pub mod localhost;
23
pub mod parquet;
3-
pub mod insta;
44
pub mod plan;

tests/highly_distributed_query.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ mod tests {
1414

1515
#[tokio::test]
1616
async fn highly_distributed_query() -> Result<(), Box<dyn Error>> {
17-
let (ctx, _guard) = start_localhost_context([
18-
50050, 50051, 50053, 50054, 50055, 50056, 50057, 50058, 50059,
19-
], NoopSessionBuilder)
17+
let (ctx, _guard) = start_localhost_context(
18+
[
19+
50050, 50051, 50053, 50054, 50055, 50056, 50057, 50058, 50059,
20+
],
21+
NoopSessionBuilder,
22+
)
2023
.await;
2124
register_parquet_tables(&ctx).await?;
2225

@@ -62,7 +65,10 @@ mod tests {
6265

6366
assert_eq!(
6467
batches.iter().map(|v| v.num_rows()).sum::<usize>(),
65-
batches_distributed.iter().map(|v| v.num_rows()).sum::<usize>(),
68+
batches_distributed
69+
.iter()
70+
.map(|v| v.num_rows())
71+
.sum::<usize>(),
6672
);
6773

6874
Ok(())

0 commit comments

Comments
 (0)