garage_api(fixup): Fix stream early ending edge-case

This commit is contained in:
Jill 2022-01-13 16:45:23 +01:00
parent e7e8ce73e3
commit b2eda2c13e
Signed by: KokaKiwi
GPG Key ID: 09A5A2688F13FAC1
1 changed files with 0 additions and 4 deletions

View File

@ -233,10 +233,6 @@ where
return Poll::Ready(Some(Err(SignedPayloadStreamError::Stream(e))))
}
None => {
if this.buf.is_empty() {
return Poll::Ready(None);
}
return Poll::Ready(Some(Err(SignedPayloadStreamError::message(
"Unexpected EOF",
))));