mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-23 11:45:25 +00:00
Style tweak
This commit is contained in:
@@ -810,6 +810,14 @@ impl Connection {
|
||||
let was_closed = state.is_closed();
|
||||
|
||||
let result = match self.decrypt_packet(was_handshake, &mut packet) {
|
||||
Err(Some(e)) => {
|
||||
warn!(self.log, "got illegal packet"; "reason" => %e);
|
||||
Err(e.into())
|
||||
}
|
||||
Err(None) => {
|
||||
debug!(self.log, "failed to authenticate packet");
|
||||
return;
|
||||
}
|
||||
Ok(number) => {
|
||||
if let Some(number) = number {
|
||||
if self.dedup.insert(number) {
|
||||
@@ -827,14 +835,6 @@ impl Connection {
|
||||
let state = self.state.take().unwrap();
|
||||
self.handle_connected_inner(ctx, now, number, packet, state)
|
||||
}
|
||||
Err(Some(e)) => {
|
||||
warn!(self.log, "got illegal packet"; "reason" => %e);
|
||||
Err(e.into())
|
||||
}
|
||||
Err(None) => {
|
||||
debug!(self.log, "failed to authenticate packet");
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
// State transitions for error cases
|
||||
|
||||
Reference in New Issue
Block a user