style: apply fmt to entire workspace
This commit is contained in:
parent
1b6cbbc095
commit
336d2400f4
23 changed files with 111 additions and 67 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use std::{net::TcpListener, os::unix::net::UnixListener, thread, time::Duration};
|
||||
use std::{os::unix::net::UnixListener, thread, time::Duration};
|
||||
|
||||
use pallas_multiplexer::{Channel, Multiplexer};
|
||||
|
||||
|
|
@ -15,7 +15,7 @@ fn main() {
|
|||
|
||||
for protocol in PROTOCOLS {
|
||||
let handle = muxer.use_channel(protocol);
|
||||
|
||||
|
||||
thread::spawn(move || {
|
||||
let Channel(_, rx) = handle;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use std::{net::TcpStream, os::unix::net::UnixStream, thread, time::Duration};
|
||||
use std::{os::unix::net::UnixStream, thread, time::Duration};
|
||||
|
||||
use pallas_multiplexer::{Channel, Multiplexer};
|
||||
|
||||
|
|
@ -20,9 +20,7 @@ fn main() {
|
|||
loop {
|
||||
let payload = vec![1; 65545];
|
||||
tx.send(payload).unwrap();
|
||||
thread::sleep(Duration::from_millis(
|
||||
50u64 + (protocol as u64 * 10u64),
|
||||
));
|
||||
thread::sleep(Duration::from_millis(50u64 + (protocol as u64 * 10u64)));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue