Skip to content

Commit

Permalink
update rustyline usage
Browse files Browse the repository at this point in the history
  • Loading branch information
density215 committed Jan 10, 2024
1 parent 206c034 commit 0c6bd5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use rustyline::Editor;

use rotonda_store::prelude::{*, multi::*};
use rotonda_store::meta_examples::PrefixAs;
use rustyline::history::DefaultHistory;

use std::env;
use std::error::Error;
Expand Down Expand Up @@ -83,7 +84,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// let locks = tree_bitmap.acquire_prefixes_rwlock_read();
let guard = &epoch::pin();

let mut rl = Editor::<()>::new();
let mut rl = Editor::<(), DefaultHistory>::new()?;
if rl.load_history("/tmp/rotonda-store-history.txt").is_err() {
println!("No previous history.");
}
Expand Down

0 comments on commit 0c6bd5f

Please sign in to comment.