From e1f9553f2dce5eaef65b2132a50f31cefceffab4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 1 Mar 2022 09:54:34 +0100 Subject: [PATCH] pbs-config: improve semi-useful comment commenting that version_cache.increase_datastore_generation increases the, well, version is rather superfluous. Also avoid the use of "we", which is always ambiguous in code comments. Signed-off-by: Thomas Lamprecht --- pbs-config/src/datastore.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pbs-config/src/datastore.rs b/pbs-config/src/datastore.rs index 6d17da63..852159eb 100644 --- a/pbs-config/src/datastore.rs +++ b/pbs-config/src/datastore.rs @@ -48,8 +48,7 @@ pub fn save_config(config: &SectionConfigData) -> Result<(), Error> { let raw = CONFIG.write(DATASTORE_CFG_FILENAME, config)?; replace_backup_config(DATASTORE_CFG_FILENAME, raw.as_bytes())?; - // increase datastore version - // We use this in pbs-datastore + // used in pbs-datastore let version_cache = ConfigVersionCache::new()?; version_cache.increase_datastore_generation();