We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d694ac commit 61651d4Copy full SHA for 61651d4
1 file changed
src/bin/main.rs
@@ -19,12 +19,16 @@ fn main() {
19
exit(1);
20
});
21
22
- let childs = vec![
23
- spawn(|| TcpRelay::new().and_then(|r| r.run())
24
- .unwrap_or_else(|e| error!("{:?}", e))),
25
- spawn(|| UdpRelay::new().and_then(|r| r.run())
26
27
- ];
+ let childs = vec![spawn(|| {
+ TcpRelay::new()
+ .and_then(|r| r.run())
+ .unwrap_or_else(|e| error!("{:?}", e))
+ }),
+ spawn(|| {
28
+ UdpRelay::new()
29
30
31
+ })];
32
33
for child in childs {
34
let _ = child.join();
0 commit comments