garage_api: Handle streaming payload early in request handling

This commit is contained in:
KokaKiwi
2022-02-18 17:05:19 +01:00
committed by Gitea
parent 822128e3c8
commit 98545a16dd
3 changed files with 61 additions and 57 deletions
+3 -3
View File
@@ -164,15 +164,15 @@ where
datetime: DateTime<Utc>,
scope: &str,
seed_signature: Hash,
) -> Result<Self, Error> {
Ok(Self {
) -> Self {
Self {
stream,
buf: bytes::BytesMut::new(),
datetime,
scope: scope.into(),
signing_hmac,
previous_signature: seed_signature,
})
}
}
fn parse_next(input: &[u8]) -> nom::IResult<&[u8], SignedPayload, SignedPayloadStreamError> {