Skip to content

Commit

Permalink
Formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus0x62 authored and bluejekyll committed Jan 1, 2024
1 parent b414fe8 commit 0d965da
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 5 additions & 1 deletion crates/recursor/src/recursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ impl Recursor {
/// # Panics
///
/// This will panic if the roots are empty.
pub fn new(roots: impl Into<NameServerConfigGroup>, ns_cache_size: usize, record_cache_size: usize) -> Result<Self, ResolveError> {
pub fn new(
roots: impl Into<NameServerConfigGroup>,
ns_cache_size: usize,
record_cache_size: usize,
) -> Result<Self, ResolveError> {
// configure the hickory-resolver
let roots: NameServerConfigGroup = roots.into();

Expand Down
4 changes: 2 additions & 2 deletions crates/server/src/store/recursor/authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ impl RecursiveAuthority {
});
}

let recursor =
Recursor::new(roots, config.ns_cache_size, config.record_cache_size).map_err(|e| format!("failed to initialize recursor: {e}"))?;
let recursor = Recursor::new(roots, config.ns_cache_size, config.record_cache_size)
.map_err(|e| format!("failed to initialize recursor: {e}"))?;

Ok(Self {
origin: origin.into(),
Expand Down
8 changes: 6 additions & 2 deletions crates/server/src/store/recursor/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,9 @@ impl RecursiveConfig {
}
}

fn ns_cache_size_default() -> usize { 1024 }
fn record_cache_size_default() -> usize { 1048576 }
fn ns_cache_size_default() -> usize {
1024
}
fn record_cache_size_default() -> usize {
1048576
}

0 comments on commit 0d965da

Please sign in to comment.