mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 15:08:24 +00:00
Apply cargo fmt to builder.rs
This commit is contained in:
+31
-31
@@ -166,11 +166,11 @@ impl Nip34WritePolicy {
|
||||
{
|
||||
Ok(result) => {
|
||||
tracing::info!(
|
||||
"Restored {} events from holding database for {}/{}",
|
||||
result.restored_count,
|
||||
announcement.owner_npub(),
|
||||
announcement.identifier
|
||||
);
|
||||
"Restored {} events from holding database for {}/{}",
|
||||
result.restored_count,
|
||||
announcement.owner_npub(),
|
||||
announcement.identifier
|
||||
);
|
||||
|
||||
if result.failed_count > 0 {
|
||||
tracing::warn!(
|
||||
@@ -183,37 +183,37 @@ impl Nip34WritePolicy {
|
||||
|
||||
// Cleanup archive files after successful recovery
|
||||
match crate::git::archive::cleanup_after_recovery(
|
||||
&recovery_info.archive_path,
|
||||
&announcement.owner_npub(),
|
||||
&announcement.identifier,
|
||||
) {
|
||||
Ok(stats) => {
|
||||
tracing::info!(
|
||||
"Cleaned up archive for {}/{}: {} bytes reclaimed",
|
||||
announcement.owner_npub(),
|
||||
announcement.identifier,
|
||||
stats.bytes_reclaimed
|
||||
);
|
||||
}
|
||||
Err(e) => {
|
||||
tracing::warn!(
|
||||
"Failed to cleanup archive for {}/{}: {}",
|
||||
announcement.owner_npub(),
|
||||
announcement.identifier,
|
||||
e
|
||||
);
|
||||
}
|
||||
}
|
||||
&recovery_info.archive_path,
|
||||
&announcement.owner_npub(),
|
||||
&announcement.identifier,
|
||||
) {
|
||||
Ok(stats) => {
|
||||
tracing::info!(
|
||||
"Cleaned up archive for {}/{}: {} bytes reclaimed",
|
||||
announcement.owner_npub(),
|
||||
announcement.identifier,
|
||||
stats.bytes_reclaimed
|
||||
);
|
||||
}
|
||||
Err(e) => {
|
||||
tracing::warn!(
|
||||
"Failed to cleanup archive for {}/{}: {}",
|
||||
announcement.owner_npub(),
|
||||
announcement.identifier,
|
||||
e
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Delete events from holding database
|
||||
let deleted_count =
|
||||
holding_db.delete_events(&event_ids).await;
|
||||
tracing::info!(
|
||||
"Deleted {} events from holding database for {}/{}",
|
||||
deleted_count,
|
||||
announcement.owner_npub(),
|
||||
announcement.identifier
|
||||
);
|
||||
"Deleted {} events from holding database for {}/{}",
|
||||
deleted_count,
|
||||
announcement.owner_npub(),
|
||||
announcement.identifier
|
||||
);
|
||||
}
|
||||
Err(e) => {
|
||||
tracing::warn!(
|
||||
|
||||
Reference in New Issue
Block a user