aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src/main_loop/mod.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-21 16:30:10 +0100
committerAleksey Kladov <[email protected]>2018-08-21 16:30:10 +0100
commitb937262c9b75a361b95a6a27260a71c737e035bf (patch)
tree1838794f32d43a8c45c478b9f24bd74d257edd43 /crates/server/src/main_loop/mod.rs
parent4d8be265849c55912467961e09af657176472dcb (diff)
Module map implementation
Diffstat (limited to 'crates/server/src/main_loop/mod.rs')
-rw-r--r--crates/server/src/main_loop/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/server/src/main_loop/mod.rs b/crates/server/src/main_loop/mod.rs
index ad7c480dc..12a903dac 100644
--- a/crates/server/src/main_loop/mod.rs
+++ b/crates/server/src/main_loop/mod.rs
@@ -94,7 +94,7 @@ pub(super) fn main_loop(
94 Event::Msg(msg) => { 94 Event::Msg(msg) => {
95 match msg { 95 match msg {
96 RawMsg::Request(req) => { 96 RawMsg::Request(req) => {
97 if !on_request(io, &state, pool, &task_sender, req)? { 97 if !on_request(io, &mut state, pool, &task_sender, req)? {
98 return Ok(()); 98 return Ok(());
99 } 99 }
100 } 100 }
@@ -114,7 +114,7 @@ pub(super) fn main_loop(
114 114
115fn on_request( 115fn on_request(
116 io: &mut Io, 116 io: &mut Io,
117 world: &ServerWorldState, 117 world: &mut ServerWorldState,
118 pool: &ThreadPool, 118 pool: &ThreadPool,
119 sender: &Sender<Task>, 119 sender: &Sender<Task>,
120 req: RawRequest, 120 req: RawRequest,
@@ -252,7 +252,7 @@ fn on_notification(
252fn handle_request_on_threadpool<R: req::ClientRequest>( 252fn handle_request_on_threadpool<R: req::ClientRequest>(
253 req: &mut Option<RawRequest>, 253 req: &mut Option<RawRequest>,
254 pool: &ThreadPool, 254 pool: &ThreadPool,
255 world: &ServerWorldState, 255 world: &mut ServerWorldState,
256 sender: &Sender<Task>, 256 sender: &Sender<Task>,
257 f: fn(ServerWorld, R::Params) -> Result<R::Result>, 257 f: fn(ServerWorld, R::Params) -> Result<R::Result>,
258) -> Result<()> 258) -> Result<()>