Skip to content

Commit 8adef64

Browse files
committed
eprintln
1 parent 547b500 commit 8adef64

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

vortex-tui/src/convert.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct Flags {
2727
/// Convert Parquet files to Vortex.
2828
pub async fn exec_convert(input_path: impl AsRef<Path>, flags: Flags) -> VortexResult<()> {
2929
if !flags.quiet {
30-
println!(
30+
eprintln!(
3131
"Converting input Parquet file: {}",
3232
input_path.as_ref().display()
3333
);
@@ -51,12 +51,12 @@ pub async fn exec_convert(input_path: impl AsRef<Path>, flags: Flags) -> VortexR
5151
let read_complete = Instant::now();
5252

5353
if !flags.quiet {
54-
println!(
54+
eprintln!(
5555
"Read Parquet file in {:?}",
5656
read_complete.duration_since(wall_start)
5757
);
5858

59-
println!(
59+
eprintln!(
6060
"Writing {} chunks to new Vortex file {}",
6161
chunks.len(),
6262
output_path.display()
@@ -84,7 +84,7 @@ pub async fn exec_convert(input_path: impl AsRef<Path>, flags: Flags) -> VortexR
8484
}
8585

8686
if !flags.quiet {
87-
println!(
87+
eprintln!(
8888
"Wrote Vortex in {:?}",
8989
Instant::now().duration_since(read_complete)
9090
);

vortex-tui/src/tree.rs

+6-8
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ use vortex::io::TokioFile;
77
pub async fn exec_tree(file: impl AsRef<Path>) -> VortexResult<()> {
88
let opened = TokioFile::open(file)?;
99

10-
let full = TOKIO_RUNTIME.block_on(async move {
11-
VortexOpenOptions::file(opened)
12-
.open()
13-
.await?
14-
.scan()
15-
.read_all()
16-
.await
17-
})?;
10+
let full = VortexOpenOptions::file(opened)
11+
.open()
12+
.await?
13+
.scan()
14+
.read_all()
15+
.await?;
1816

1917
println!("{}", full.tree_display());
2018

0 commit comments

Comments
 (0)