diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2017-10-25 22:12:50 -0400 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2017-10-25 22:12:50 -0400 |
commit | 0813a83bcaa4ecf362ec991296d7b00a6c9510e6 (patch) | |
tree | 8ffde3e3e11fb9de78292b3da1f03472e324e5e1 /ipfs-api/src/read.rs | |
parent | ae2ab2da72b9d5d6d08bb9813c1b798bbfa5da7b (diff) |
fix bad ret
Diffstat (limited to 'ipfs-api/src/read.rs')
-rw-r--r-- | ipfs-api/src/read.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipfs-api/src/read.rs b/ipfs-api/src/read.rs index 843447a..eb63023 100644 --- a/ipfs-api/src/read.rs +++ b/ipfs-api/src/read.rs @@ -120,7 +120,7 @@ where } // Polling stream yielded EOF. // - Ok(Async::Ready(None)) => continue, + Ok(Async::Ready(None)) => return Ok(0), // Stream could not be read from. // Ok(Async::NotReady) => return Err(io::ErrorKind::WouldBlock.into()), |