From: Ian Jackson Date: Wed, 31 Mar 2021 18:14:04 +0000 (+0100) Subject: cmd updates: Improve arguments to accumulate X-Git-Tag: otter-0.5.0~348 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=61a53807624ce8dd56bbc75a4c548f18cacc869a;p=otter.git cmd updates: Improve arguments to accumulate We'll need this in a moment. Signed-off-by: Ian Jackson --- 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 {