recursor: rename Recursor::new() to builder()
This commit is contained in:
parent
5db65e336b
commit
872ada02ef
@ -108,9 +108,8 @@ pub struct Recursor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Recursor {
|
impl Recursor {
|
||||||
/// Short-hand for `RecursorBuilder::default`
|
/// Construct the new [`Recursor`] via the [`RecursorBuilder`]
|
||||||
#[allow(clippy::new_ret_no_self)]
|
pub fn builder() -> RecursorBuilder {
|
||||||
pub fn new() -> RecursorBuilder {
|
|
||||||
RecursorBuilder::default()
|
RecursorBuilder::default()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ impl RecursiveAuthority {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut recursor = Recursor::new();
|
let mut recursor = Recursor::builder();
|
||||||
recursor
|
recursor
|
||||||
.ns_cache_size(config.ns_cache_size)
|
.ns_cache_size(config.ns_cache_size)
|
||||||
.record_cache_size(config.record_cache_size);
|
.record_cache_size(config.record_cache_size);
|
||||||
|
@ -157,7 +157,7 @@ pub async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
let name = opts.domainname;
|
let name = opts.domainname;
|
||||||
let ty = opts.ty;
|
let ty = opts.ty;
|
||||||
|
|
||||||
let recursor = Recursor::new().build(roots)?;
|
let recursor = Recursor::builder().build(roots)?;
|
||||||
|
|
||||||
// execute query
|
// execute query
|
||||||
println!(
|
println!(
|
||||||
|
Loading…
Reference in New Issue
Block a user