From 2362bc2cc6461d4e4c99be887458774a3f99dcfe Mon Sep 17 00:00:00 2001 From: Jeron Aldaron Lau Date: Wed, 10 Aug 2022 02:07:08 -0500 Subject: [PATCH] Fix tty buffer size typo for unix (#701) --- src/event/source/unix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event/source/unix.rs b/src/event/source/unix.rs index 645e2cc..8a44d5a 100644 --- a/src/event/source/unix.rs +++ b/src/event/source/unix.rs @@ -26,7 +26,7 @@ const WAKE_TOKEN: Token = Token(2); // I (@zrzka) wasn't able to read more than 1_022 bytes when testing // reading on macOS/Linux -> we don't need bigger buffer and 1k of bytes // is enough. -const TTY_BUFFER_SIZE: usize = 1_204; +const TTY_BUFFER_SIZE: usize = 1_024; pub(crate) struct UnixInternalEventSource { poll: Poll,