update history max size with two different calls. (#2202)

Closes #2193
This commit is contained in:
Darren Schroeder 2020-07-17 22:26:32 -05:00 committed by GitHub
parent 9d24b440bb
commit 04e8aa31fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -644,7 +644,9 @@ pub async fn cli(
.map(|i| i.value.expect_int())
.unwrap_or(100_000);
rl.set_max_history_size(max_history_size as usize);
// rl.set_max_history_size(max_history_size as usize);
rustyline::config::Configurer::set_max_history_size(&mut rl, max_history_size as usize);
rustyline::Editor::set_max_history_size(&mut rl, max_history_size as usize);
let key_timeout = config
.get("key_timeout")