improve concurrency control; use nar_size from cpathinfo

This commit is contained in:
cy 2025-04-27 01:23:45 -04:00
parent ca97aebd7a
commit e5336d304d
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
6 changed files with 33 additions and 8 deletions

View file

@ -18,6 +18,7 @@ pub struct PathInfo {
pub path: StorePath<String>,
pub signatures: Vec<String>,
pub references: Vec<StorePath<String>>,
pub nar_size: u64,
}
impl PathInfo {
@ -90,7 +91,7 @@ impl PathInfo {
let upstream = upstream
.join(self.narinfo_path().as_ref())
.expect("adding <hash>.narinfo should make a valid url");
debug!("querying {}", upstream);
trace!("querying {}", upstream);
let res_status = reqwest::Client::new()
.head(upstream.as_str())
.send()