mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-15 04:05:03 +01:00
handle ChannelClose
This commit is contained in:
parent
cb73214bc3
commit
f2195133fb
6 changed files with 38 additions and 7 deletions
|
|
@ -93,7 +93,12 @@ pub type IResult<'a, T> = nom::IResult<&'a [u8], T, TransError>;
|
|||
.ok();
|
||||
|
||||
for assert in &domain.asserts {
|
||||
self.assert_check(assert, &type_name, "result");
|
||||
// channel.close requires a reply code, but there exists no reply code for
|
||||
// a regular shutdown, and pythons `pika` just sends 0, even though the spec
|
||||
// technically says that reply-code must be nonnull. Ignore that here.
|
||||
if domain.name != "reply-code" {
|
||||
self.assert_check(assert, &type_name, "result");
|
||||
}
|
||||
}
|
||||
writeln!(self.output, " Ok((input, result))").ok();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue