diff options
Diffstat (limited to 'crates/repos/src/lib.rs')
| -rw-r--r-- | crates/repos/src/lib.rs | 8 | +4 −4 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/repos/src/lib.rs b/crates/repos/src/lib.rs index 4191ea0..14fd3a9 100644 --- a/crates/repos/src/lib.rs +++ b/crates/repos/src/lib.rs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2026 Nikolay Govorov +// SPDX-FileCopyrightText: 2026 Nikolay Govorov <me@govorov.online> // SPDX-License-Identifier: AGPL-3.0-or-later pub mod go; @@ -313,8 +313,8 @@ pub trait BackendStorage: Send + Sync { meta_null_field: Option<&str>, ) -> Result<Vec<RawReleaseFile>, BackendError>; - /// Update file metadata (e.g. after fetching a signature). - async fn update_file_meta(&self, file: &RawReleaseFile) -> Result<bool, BackendError>; + /// Update a single file. + async fn update_file(&self, file: &RawReleaseFile) -> Result<bool, BackendError>; } /// Delegate provides I/O primitives to backends. @@ -404,7 +404,7 @@ impl<S: BackendSpec> Backend<S> { for file in files { match S::fetch_signature(&file, &self.config, &self.source, &*self.network).await { Ok(updated) => { - if let Err(e) = self.storage.update_file_meta(&updated).await { + if let Err(e) = self.storage.update_file(&updated).await { tracing::debug!( filename = file.filename, "failed to store signature: {e}" |
