@@ -21,7 +21,7 @@ pub const DEFAULT_REQUEST_TIMEOUT: Duration = Duration::from_secs(2);
21
21
22
22
/// [Client]'s Config
23
23
#[ derive( Clone ) ]
24
- pub struct Config {
24
+ pub ( crate ) struct Config {
25
25
/// Defaults to [DEFAULT_CACHE_SIZE]
26
26
pub cache_size : usize ,
27
27
/// Used in the `min` parameter in [crate::SignedPacket::expires_in].
@@ -150,7 +150,7 @@ impl ClientBuilder {
150
150
///
151
151
/// You can start a separate Dht network by setting this to an empty array.
152
152
///
153
- /// If you want to extend [Config::dht_config:: bootstrap][mainline::Config ::bootstrap] nodes with more nodes, you can
153
+ /// If you want to extend [bootstrap][mainline::DhtBuilder ::bootstrap] nodes with more nodes, you can
154
154
/// use [Self::extra_bootstrap].
155
155
#[ cfg( all( feature = "dht" , not( target_family = "wasm" ) ) ) ]
156
156
pub fn bootstrap < T : ToSocketAddrs > ( & mut self , bootstrap : & [ T ] ) -> & mut Self {
@@ -176,13 +176,13 @@ impl ClientBuilder {
176
176
self
177
177
}
178
178
179
+ #[ cfg( all( feature = "dht" , not( target_family = "wasm" ) ) ) ]
179
180
/// Set custom set of [resolvers](https://pkarr.org/resolvers).
180
181
///
181
182
/// You can disable resolvers using [Self::no_resolvers].
182
183
///
183
- /// If you want to extend the [Config:: resolvers] with more nodes, you can
184
+ /// If you want to extend the resolvers with more nodes, you can
184
185
/// use [Self::extra_resolvers].
185
- #[ cfg( all( feature = "dht" , not( target_family = "wasm" ) ) ) ]
186
186
pub fn resolvers < T : ToSocketAddrs > ( & mut self , resolvers : & [ T ] ) -> & mut Self {
187
187
self . 0 . resolvers = Some ( resolvers_to_socket_addrs ( resolvers) ) ;
188
188
0 commit comments