Code formatting
continuous-integration/drone the build was successful
Details
continuous-integration/drone the build was successful
Details
This commit is contained in:
parent
066292b6fe
commit
c3c0fdd240
|
@ -158,7 +158,10 @@ pub fn backup_source_to_destination<PT: ProgressTracker>(
|
|||
|
||||
let pointer_name = get_pointer_name_at(&source_name, Utc::now());
|
||||
if pile.read_pointer(pointer_name.as_str())?.is_some() {
|
||||
bail!("Pointer by name {:?} already exists; refusing to overwrite.", pointer_name);
|
||||
bail!(
|
||||
"Pointer by name {:?} already exists; refusing to overwrite.",
|
||||
pointer_name
|
||||
);
|
||||
}
|
||||
info!("Will write as pointer {:?}.", pointer_name);
|
||||
|
||||
|
@ -221,7 +224,10 @@ pub fn backup_source_to_destination<PT: ProgressTracker>(
|
|||
|
||||
let pointer_name = get_pointer_name_at(&source_name, Utc::now());
|
||||
if pile.read_pointer(pointer_name.as_str())?.is_some() {
|
||||
bail!("Pointer by name {:?} already exists; refusing to overwrite.", pointer_name);
|
||||
bail!(
|
||||
"Pointer by name {:?} already exists; refusing to overwrite.",
|
||||
pointer_name
|
||||
);
|
||||
}
|
||||
info!("Will write as pointer {:?}.", pointer_name);
|
||||
|
||||
|
|
|
@ -183,7 +183,10 @@ pub fn backup_remote_source_to_destination<PT: ProgressTracker + Send + 'static>
|
|||
|
||||
let pointer_name = get_pointer_name_at(&source_name, Utc::now());
|
||||
if pile.read_pointer(pointer_name.as_str())?.is_some() {
|
||||
bail!("Pointer by name {:?} already exists; refusing to overwrite.", pointer_name);
|
||||
bail!(
|
||||
"Pointer by name {:?} already exists; refusing to overwrite.",
|
||||
pointer_name
|
||||
);
|
||||
}
|
||||
info!("Will write as pointer {:?}.", pointer_name);
|
||||
|
||||
|
|
|
@ -535,9 +535,7 @@ impl RawPile for SqliteBloblogPile {
|
|||
if inner.writers_in_progress > 0 {
|
||||
let _inner = self
|
||||
.writers_reach_zero
|
||||
.wait_while(inner, |inner| {
|
||||
inner.writers_in_progress != 0
|
||||
})
|
||||
.wait_while(inner, |inner| inner.writers_in_progress != 0)
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue