Misc nitpicks, changes too small / unrelated to be in other PRs (#32768)
Release Notes: - N/A
This commit is contained in:
parent
02da4669f3
commit
3810227759
8 changed files with 26 additions and 21 deletions
|
@ -335,6 +335,7 @@ impl Zeta {
|
|||
|
||||
self.events.push_back(event);
|
||||
if self.events.len() >= MAX_EVENT_COUNT {
|
||||
// These are halved instead of popping to improve prompt caching.
|
||||
self.events.drain(..MAX_EVENT_COUNT / 2);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue