rust/hedgewars-server/src/server/io.rs
changeset 15103 9397e07b3086
parent 15080 e935b1ad23f3
child 15108 823052e66611
--- a/rust/hedgewars-server/src/server/io.rs	Sun Jun 02 18:22:06 2019 +0200
+++ b/rust/hedgewars-server/src/server/io.rs	Sun Jun 02 22:25:41 2019 +0300
@@ -15,12 +15,12 @@
 
 pub type RequestId = u32;
 
-pub struct IOThread {
+pub struct IoThread {
     core_tx: mpsc::Sender<(RequestId, IoTask)>,
     core_rx: channel::Receiver<(RequestId, IoResult)>,
 }
 
-impl IOThread {
+impl IoThread {
     pub fn new() -> Self {
         let (core_tx, io_rx) = mpsc::channel();
         let (io_tx, core_rx) = channel::channel();
@@ -29,7 +29,7 @@
         db.connect("localhost");
 
         thread::spawn(move || {
-            while let Ok((request_id, task)) = io_rx.try_recv() {
+            while let Ok((request_id, task)) = io_rx.recv() {
                 let response = match task {
                     IoTask::GetAccount {
                         nick,