refactor(async): let read_by_hint() optionally accumulate unmatched bytes

The caller can then decide what to do.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2024-08-14 19:17:02 +04:00 committed by Benoît Cortier
parent 46b703e813
commit 98e7dbab99
3 changed files with 17 additions and 6 deletions

View file

@ -940,7 +940,7 @@ where
// RDCleanPath response
let rdcleanpath_res = framed
.read_by_hint(&RDCLEANPATH_HINT)
.read_by_hint(&RDCLEANPATH_HINT, None)
.await
.context("read RDCleanPath request")?;