From 4beb7d2dbec9471eddfedb78ed128040cb445a17 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 6 Nov 2021 17:33:08 +0100 Subject: [PATCH] correctly lock remote config Signed-off-by: Dietmar Maurer --- src/api2/config/remote.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api2/config/remote.rs b/src/api2/config/remote.rs index 29e638d7..2a1dcb40 100644 --- a/src/api2/config/remote.rs +++ b/src/api2/config/remote.rs @@ -86,7 +86,7 @@ pub fn create_remote( password: String, ) -> Result<(), Error> { - let _lock = pbs_config::remote::config()?; + let _lock = pbs_config::remote::lock_config()?; let (mut section_config, _digest) = pbs_config::remote::config()?; @@ -185,7 +185,7 @@ pub fn update_remote( digest: Option, ) -> Result<(), Error> { - let _lock = pbs_config::remote::config()?; + let _lock = pbs_config::remote::lock_config()?; let (mut config, expected_digest) = pbs_config::remote::config()?; @@ -257,7 +257,7 @@ pub fn delete_remote(name: String, digest: Option) -> Result<(), Error> } } - let _lock = pbs_config::remote::config()?; + let _lock = pbs_config::remote::lock_config()?; let (mut config, expected_digest) = pbs_config::remote::config()?;