From b2eda2c13ec54a6b1dc772a3b30fd7b590c8e90a Mon Sep 17 00:00:00 2001 From: Jill Date: Thu, 13 Jan 2022 16:45:23 +0100 Subject: [PATCH] garage_api(fixup): Fix stream early ending edge-case --- src/api/signature/streaming.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/api/signature/streaming.rs b/src/api/signature/streaming.rs index 17e0bd77..b2dc1591 100644 --- a/src/api/signature/streaming.rs +++ b/src/api/signature/streaming.rs @@ -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", ))));