File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments