feat(async): teach single_sequence_step() to keep unmatched PDUs

The caller can gather the unmatching/unexpected PDUs as necessary.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2024-08-14 19:29:07 +04:00 committed by Benoît Cortier
parent 6f779406e6
commit e54fa5f4c8
5 changed files with 13 additions and 10 deletions

View file

@ -41,7 +41,7 @@ where
return Ok(result);
}
single_sequence_step(&mut framed, acceptor, &mut buf).await?;
single_sequence_step(&mut framed, acceptor, &mut buf, None).await?;
}
}
@ -59,6 +59,6 @@ where
return Ok((framed, result));
}
single_sequence_step(&mut framed, acceptor, &mut buf).await?;
single_sequence_step(&mut framed, acceptor, &mut buf, None).await?;
}
}