mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 11:21:24 +00:00
Cargo fmt
This commit is contained in:
parent
0d5ce07b20
commit
a0f7148924
2 changed files with 5 additions and 4 deletions
|
@ -72,9 +72,8 @@ static TMP_DIR: Lazy<PathBuf> = Lazy::new(|| {
|
|||
path
|
||||
});
|
||||
static CONFIG: Lazy<Config> = Lazy::new(Config::from_args);
|
||||
static PROCESS_SEMAPHORE: Lazy<tokio::sync::Semaphore> = Lazy::new(|| tokio::sync::Semaphore::new(
|
||||
num_cpus::get().saturating_sub(1).max(1),
|
||||
));
|
||||
static PROCESS_SEMAPHORE: Lazy<tokio::sync::Semaphore> =
|
||||
Lazy::new(|| tokio::sync::Semaphore::new(num_cpus::get().saturating_sub(1).max(1)));
|
||||
static PROCESS_MAP: Lazy<DashMap<PathBuf, Vec<Sender<(Details, web::Bytes)>>>> =
|
||||
Lazy::new(DashMap::new);
|
||||
|
||||
|
|
|
@ -80,6 +80,8 @@ impl SledTree for sled034::Tree {
|
|||
}
|
||||
|
||||
fn flush(&self) -> Result<(), UploadError> {
|
||||
sled034::Tree::flush(self).map(|_| ()).map_err(UploadError::from)
|
||||
sled034::Tree::flush(self)
|
||||
.map(|_| ())
|
||||
.map_err(UploadError::from)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue