aboutsummaryrefslogtreecommitdiff
path: root/examples/std/src/bin/tcp_accept.rs
diff options
context:
space:
mode:
authorklownfish <[email protected]>2024-09-11 11:55:50 +0200
committerklownfish <[email protected]>2024-09-11 11:55:50 +0200
commitf0a86d1a344eac1528ce8653c573d1fe840b4083 (patch)
tree426b03be0f9306261c8d12e75d58a1fcafcbf2e7 /examples/std/src/bin/tcp_accept.rs
parent0ba91ca555efc75dca603adbb51355c92b2fdb80 (diff)
parent7648d42b7f23a2caad29ed6e16123b088ccdc8b5 (diff)
Merge branch 'main' of github.com:embassy-rs/embassy
Diffstat (limited to 'examples/std/src/bin/tcp_accept.rs')
-rw-r--r--examples/std/src/bin/tcp_accept.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/std/src/bin/tcp_accept.rs b/examples/std/src/bin/tcp_accept.rs
index e8b6eaa6c..39b29a449 100644
--- a/examples/std/src/bin/tcp_accept.rs
+++ b/examples/std/src/bin/tcp_accept.rs
@@ -64,12 +64,7 @@ async fn main_task(spawner: Spawner) {
64 // Init network stack 64 // Init network stack
65 static STACK: StaticCell<Stack<TunTapDevice>> = StaticCell::new(); 65 static STACK: StaticCell<Stack<TunTapDevice>> = StaticCell::new();
66 static RESOURCES: StaticCell<StackResources<3>> = StaticCell::new(); 66 static RESOURCES: StaticCell<StackResources<3>> = StaticCell::new();
67 let stack = &*STACK.init(Stack::new( 67 let stack = &*STACK.init(Stack::new(device, config, RESOURCES.init(StackResources::new()), seed));
68 device,
69 config,
70 RESOURCES.init(StackResources::<3>::new()),
71 seed,
72 ));
73 68
74 // Launch network task 69 // Launch network task
75 spawner.spawn(net_task(stack)).unwrap(); 70 spawner.spawn(net_task(stack)).unwrap();