refactor(miniprotocols): Use pure functions for state machines (#84)
This commit is contained in:
parent
90ad1e9217
commit
dc422284b2
20 changed files with 446 additions and 531 deletions
|
|
@ -20,8 +20,9 @@ fn write_segment(
|
|||
|
||||
if log_enabled!(log::Level::Trace) {
|
||||
trace!(
|
||||
"sending segment, header {:?}, payload length: {}",
|
||||
"sending segment, header {:?}, protocol id: {}, payload length: {}",
|
||||
hex::encode(&msg),
|
||||
protocol_id,
|
||||
payload.len()
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue