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

@ -69,11 +69,13 @@ impl Store {
.map(|x| StorePath::from_bytes(x.as_bytes()))
.collect::<Result<_, _>>()
.context("get references from pathinfo")?;
let nar_size = c_path_info.pin_mut().nar_size();
Ok(PathInfo {
path,
signatures,
references,
nar_size,
})
})
.await