refactor: implement transport_error
This commit is contained in:
parent
650beac975
commit
4baca8b192
2 changed files with 19 additions and 3 deletions
|
|
@ -165,7 +165,8 @@ const Endpoint = struct {
|
|||
if (self.proxies.get(e.id)) |p|
|
||||
p.send(.{ "exit", e.reason }) catch {};
|
||||
},
|
||||
.link, .transport_error => return tp.exit_error(error.UnexpectedMessage, null),
|
||||
.transport_error => |te| return tp.exit(te.reason),
|
||||
.link => return tp.exit_error(error.UnexpectedMessage, null),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue