Skip to content

Commit f028436

Browse files
committed
Rm unnecessary max limit checking in unix::Client::new
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent 6075bb9 commit f028436

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/unix.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ pub struct Acquired {
2323

2424
impl Client {
2525
pub fn new(mut limit: usize) -> io::Result<Client> {
26-
if limit > PIPE_BUF {
27-
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"));
28-
}
29-
3026
let client = unsafe { Client::mk()? };
3127

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

0 commit comments

Comments
 (0)