mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 03:25:23 +00:00
fix(events): remove sorting and deduplicating incoming actions (#356)
Fixes #355
This commit is contained in:
parent
86c100e381
commit
df2592f2c8
@ -79,7 +79,7 @@ impl From<ActionOutcome> for AppOutput {
|
||||
}
|
||||
|
||||
const EVENT_BUF_SIZE: usize = 4;
|
||||
const ACTION_BUF_SIZE: usize = 16;
|
||||
const ACTION_BUF_SIZE: usize = 8;
|
||||
|
||||
impl App {
|
||||
pub fn new(
|
||||
@ -246,8 +246,6 @@ impl App {
|
||||
buf: &mut Vec<Action>,
|
||||
) -> Result<ActionOutcome> {
|
||||
if self.action_rx.recv_many(buf, ACTION_BUF_SIZE).await > 0 {
|
||||
buf.sort_unstable();
|
||||
buf.dedup();
|
||||
for action in buf.drain(..) {
|
||||
if action != Action::Tick {
|
||||
trace!("{action:?}");
|
||||
|
Loading…
x
Reference in New Issue
Block a user