Fix tty buffer size typo for unix (#701)

This commit is contained in:
Jeron Aldaron Lau 2022-08-10 02:07:08 -05:00 committed by GitHub
parent f59221e1a2
commit 2362bc2cc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ const WAKE_TOKEN: Token = Token(2);
// I (@zrzka) wasn't able to read more than 1_022 bytes when testing // 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 // reading on macOS/Linux -> we don't need bigger buffer and 1k of bytes
// is enough. // is enough.
const TTY_BUFFER_SIZE: usize = 1_204; const TTY_BUFFER_SIZE: usize = 1_024;
pub(crate) struct UnixInternalEventSource { pub(crate) struct UnixInternalEventSource {
poll: Poll, poll: Poll,