summaryrefslogtreecommitdiffstats
path: root/src/command/stats.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/stats.rs')
-rw-r--r--src/command/stats.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/stats.rs b/src/command/stats.rs
index 742202ae..5e3a67c2 100644
--- a/src/command/stats.rs
+++ b/src/command/stats.rs
@@ -6,6 +6,7 @@ use chrono_english::parse_date_string;
use cli_table::{format::Justify, print_stdout, Cell, Style, Table};
use eyre::{eyre, Result};
+use futures::TryStreamExt;
use structopt::StructOpt;
use atuin_client::database::Database;
@@ -95,8 +96,7 @@ impl Cmd {
}
Self::All => {
- let history = db.list(None, false).await?;
-
+ let history: Vec<History> = db.list(None, false).try_collect().await?;
compute_stats(&history)?;
Ok(())