Skip to content

Commit

Permalink
Rename const
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkah committed Jul 6, 2023
1 parent 676e2ac commit 06d32d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/src/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const MAX_MESSAGES: usize = 10_000;
const TRUNC_COUNT: usize = 500;
/// Duration to wait after receiving last message before flushing
const FLUSH_AFTER_LAST_RECEIVED: Duration = Duration::from_secs(5);
const MAX_INPUT_HISTORY_LENGTH: usize = 100;
const INPUT_HISTORY_LENGTH: usize = 100;

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum Kind {
Expand Down Expand Up @@ -285,7 +285,7 @@ impl Input {
fn push(&mut self, buffer: &Buffer, text: String) {
let history = self.0.entry(buffer.clone()).or_default();
history.insert(0, text);
history.truncate(MAX_INPUT_HISTORY_LENGTH);
history.truncate(INPUT_HISTORY_LENGTH);
}
}

Expand Down

0 comments on commit 06d32d3

Please sign in to comment.