]> piware.de Git - learn-rust.git/commit - tokio-tutorial-mini-redis/src/bin/server.rs
tokio-tutorial-mini-redis: Add proper error handling
authorMartin Pitt <martin@piware.de>
Sun, 18 Sep 2022 18:04:38 +0000 (20:04 +0200)
committerMartin Pitt <martin@piware.de>
Sun, 18 Sep 2022 18:04:38 +0000 (20:04 +0200)
commit795a7f60cfacc6dbd3be562e8fd414affa803b01
treeedb6809c98bebb70fa37ed306bf2449ef948256c
parentad0d6c330c5aea1ffe3a553d5d1d14a513d3cff3
tokio-tutorial-mini-redis: Add proper error handling

Keep unwrapping accept() and Mutex failures, these are early/unlikely enough
to be okay to crash.
tokio-tutorial-mini-redis/src/bin/server.rs