mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
better panic message
This commit is contained in:
parent
41a52cfc8c
commit
1aa4024721
1 changed files with 3 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ pub fn start_polling_thread() -> Receiver<Vec<QueueEvent>> {
|
|||
if !batch.is_empty()
|
||||
&& last_send.elapsed() > MAX_BATCHING_DURATION
|
||||
{
|
||||
tx1.send(batch).unwrap();
|
||||
tx1.send(batch).expect("send input event failed");
|
||||
batch = Vec::new();
|
||||
last_send = Instant::now();
|
||||
}
|
||||
|
|
@ -49,7 +49,8 @@ pub fn start_polling_thread() -> Receiver<Vec<QueueEvent>> {
|
|||
});
|
||||
|
||||
rayon_core::spawn(move || loop {
|
||||
tx.send(vec![QueueEvent::Tick]).unwrap();
|
||||
tx.send(vec![QueueEvent::Tick])
|
||||
.expect("send tick event failed");
|
||||
sleep(TICK_DURATION);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue