From 61a53807624ce8dd56bbc75a4c548f18cacc869a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 31 Mar 2021 19:14:04 +0100 Subject: [PATCH] cmd updates: Improve arguments to accumulate We'll need this in a moment. Signed-off-by: Ian Jackson --- daemon/cmdlistener.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/daemon/cmdlistener.rs b/daemon/cmdlistener.rs index bcffb751..b7dfdd67 100644 --- a/daemon/cmdlistener.rs +++ b/daemon/cmdlistener.rs @@ -873,7 +873,7 @@ fn execute_for_game<'cs, 'igr, 'ig: 'igr>( let uh = mk_uh(); (uh, auth_y) }); - uh.accumulate(ig, updates)?; + uh.accumulate(ig, updates, &who)?; responses.push(resp); if let Some(unprepared) = unprepared { let uh = mem::replace(uh, mk_uh()); @@ -944,8 +944,9 @@ impl UpdateHandler { } #[throws(SVGProcessingError)] - fn accumulate(&mut self, g: &mut Instance, - updates: ExecuteGameChangeUpdates) { + fn accumulate(&mut self, g: &mut InstanceGuard, + updates: ExecuteGameChangeUpdates, + who: &Html) { let mut raw = updates.raw.unwrap_or_default(); use UpdateHandler::*; match self { -- 2.30.2