simpler update
This commit is contained in:
@@ -252,7 +252,7 @@ fn on_notification(
|
||||
fn handle_request_on_threadpool<R: req::ClientRequest>(
|
||||
req: &mut Option<RawRequest>,
|
||||
pool: &ThreadPool,
|
||||
world: &mut ServerWorldState,
|
||||
world: &ServerWorldState,
|
||||
sender: &Sender<Task>,
|
||||
f: fn(ServerWorld, R::Params) -> Result<R::Result>,
|
||||
) -> Result<()>
|
||||
|
||||
@@ -86,7 +86,7 @@ impl ServerWorldState {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn snapshot(&mut self) -> ServerWorld {
|
||||
pub fn snapshot(&self) -> ServerWorld {
|
||||
let pm = self.path_map.clone();
|
||||
ServerWorld {
|
||||
analysis: self.analysis.snapshot(move |id, path| {
|
||||
|
||||
Reference in New Issue
Block a user