Skip to content

Commit 4d4dbb7

Browse files
committed
chore: fix cargo fmt issues
1 parent 47aaffd commit 4d4dbb7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

app/src/actors_v2/network/network_actor.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ pub enum SwarmCommand {
7474
response: BlockResponse,
7575
},
7676
/// Add peer as explicit gossipsub peer for immediate mesh formation
77-
AddExplicitPeer {
78-
peer_id: PeerId,
79-
},
77+
AddExplicitPeer { peer_id: PeerId },
8078
}
8179

8280
/// Phase 4: Rate limiter for DOS protection

app/src/actors_v2/storage/database.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,12 @@ impl DatabaseManager {
117117
// RocksDB operations are blocking, but we're already in a blocking context
118118
// (app.rs wraps V2 initialization in spawn_blocking), so we can call directly
119119
let path_display = path.display().to_string();
120-
let db = DB::open_cf_descriptors(&opts, path, column_families)
121-
.map_err(|e| StorageError::Database(format!("Failed to open database at {}: {}", path_display, e)))?;
120+
let db = DB::open_cf_descriptors(&opts, path, column_families).map_err(|e| {
121+
StorageError::Database(format!(
122+
"Failed to open database at {}: {}",
123+
path_display, e
124+
))
125+
})?;
122126

123127
info!("Successfully opened database at: {}", path_display);
124128
Ok(db)

0 commit comments

Comments
 (0)