Skip to content

Commit

Permalink
Rm unnecessary max limit checking in unix::Client::new
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu committed Jul 1, 2022
1 parent 6075bb9 commit f028436
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ pub struct Acquired {

impl Client {
pub fn new(mut limit: usize) -> io::Result<Client> {
if limit > PIPE_BUF {
return Err(io::Error::new(io::ErrorKind::Other, "Can't have limit larger than 4096 since the pipe would block forever when writing to it"));
}

let client = unsafe { Client::mk()? };

// I don't think the character written here matters, but I could be
Expand Down

0 comments on commit f028436

Please sign in to comment.