From 4c014ab519f8adfb52d11457da7951d18a9fa39d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 15 May 2021 18:43:38 +0100 Subject: [PATCH] cmdlistener: Rename access_bundles This is not just for modifying. Signed-off-by: Ian Jackson --- daemon/cmdlistener.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/cmdlistener.rs b/daemon/cmdlistener.rs index 04096a91..13a2006d 100644 --- a/daemon/cmdlistener.rs +++ b/daemon/cmdlistener.rs @@ -104,7 +104,7 @@ fn execute_and_respond(cs: &mut CommandStreamData, cmd: MgmtCommand, } #[throws(MgmtError)] - fn modify_bundles<'ig,F,R>( + fn access_bundles<'ig,F,R>( cs: &mut CommandStreamData, ag: &AccountsGuard, gref: &'ig Unauthorised, @@ -255,7 +255,7 @@ fn execute_and_respond(cs: &mut CommandStreamData, cmd: MgmtCommand, MC::UploadBundle { game, size, hash, kind } => { let (upload, auth) = { let (ag, gref) = start_access_game(&game)?; - modify_bundles( + access_bundles( cs,&ag,&gref, &[TP::UploadBundles], &mut |mut ig, mut bundles: BundlesGuard<'_>| { bundles.start_upload(&mut ig, kind) @@ -292,7 +292,7 @@ fn execute_and_respond(cs: &mut CommandStreamData, cmd: MgmtCommand, } MC::ClearBundles { game } => { let (ag, gref) = start_access_game(&game)?; - modify_bundles( + access_bundles( cs,&ag,&gref, &[TP::ClearBundles], &mut |mut ig, mut bundles: BundlesGuard<'_>| { bundles.clear(&mut ig) -- 2.30.2