Skip to content

Commit 92cd938

Browse files
committed
docs(pkarr): fix broken links
1 parent b338d1a commit 92cd938

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/rust.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ jobs:
3131
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
3232
restore-keys: |
3333
${{ runner.os }}-cargo-registry-
34+
3435
- name: Cache cargo index
3536
uses: actions/cache@v2
3637
with:
3738
path: ~/.cargo/git
3839
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
3940
restore-keys: |
4041
${{ runner.os }}-cargo-index-
42+
4143
- name: Cache cargo build
4244
id: cargo-build-cache
4345
uses: actions/cache@v2
@@ -46,6 +48,7 @@ jobs:
4648
key: ${{ runner.os }}-cargo-build-${{ hashFiles('./Cargo.lock') }}
4749
restore-keys: |
4850
${{ runner.os }}-cargo-build-
51+
4952
- name: Cache Nextest installation
5053
uses: actions/cache@v2
5154
with:

pkarr/src/client/builder.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub const DEFAULT_REQUEST_TIMEOUT: Duration = Duration::from_secs(2);
2121

2222
/// [Client]'s Config
2323
#[derive(Clone)]
24-
pub struct Config {
24+
pub(crate) struct Config {
2525
/// Defaults to [DEFAULT_CACHE_SIZE]
2626
pub cache_size: usize,
2727
/// Used in the `min` parameter in [crate::SignedPacket::expires_in].
@@ -150,7 +150,7 @@ impl ClientBuilder {
150150
///
151151
/// You can start a separate Dht network by setting this to an empty array.
152152
///
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
154154
/// use [Self::extra_bootstrap].
155155
#[cfg(all(feature = "dht", not(target_family = "wasm")))]
156156
pub fn bootstrap<T: ToSocketAddrs>(&mut self, bootstrap: &[T]) -> &mut Self {
@@ -176,13 +176,13 @@ impl ClientBuilder {
176176
self
177177
}
178178

179+
#[cfg(all(feature = "dht", not(target_family = "wasm")))]
179180
/// Set custom set of [resolvers](https://pkarr.org/resolvers).
180181
///
181182
/// You can disable resolvers using [Self::no_resolvers].
182183
///
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
184185
/// use [Self::extra_resolvers].
185-
#[cfg(all(feature = "dht", not(target_family = "wasm")))]
186186
pub fn resolvers<T: ToSocketAddrs>(&mut self, resolvers: &[T]) -> &mut Self {
187187
self.0.resolvers = Some(resolvers_to_socket_addrs(resolvers));
188188

pkarr/src/client/tests.rs

-4
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,6 @@ async fn concurrent_publish_of_different_packets(#[case] networks: Networks) {
340340
#[cfg_attr(feature = "relays", case::relays(Networks::Relays))]
341341
#[tokio::test]
342342
async fn concurrent_publish_different_with_cas(#[case] networks: Networks) {
343-
tracing_subscriber::fmt()
344-
.with_env_filter("tower_http=debug")
345-
.init();
346-
347343
let testnet = mainline::Testnet::new(10).unwrap();
348344
let relay = Relay::start_test(&testnet).await.unwrap();
349345

0 commit comments

Comments
 (0)