Skip to content

Commit

Permalink
wip(pkarr): add EndpointResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuhvi committed Sep 24, 2024
1 parent affe38e commit b8d1597
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkarr/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub enum Error {
DhtIsShutdown,

#[error("Publish query is already inflight for the same public_key")]
/// [crate::dht::Client::publish] is already inflight to the same public_key
/// [crate::Client::publish] is already inflight to the same public_key
PublishInflight,

#[error("SignedPacket's timestamp is not the most recent")]
Expand Down
2 changes: 1 addition & 1 deletion pkarr/src/extra/endpoints/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct Endpoint {
impl Endpoint {
/// 1. Find the SVCB or HTTPS records with the lowest priority
/// 2. Choose a random one of the list of the above
/// 3. If the target is `.`, check A and AAAA records (https://www.rfc-editor.org/rfc/rfc9460#name-special-handling-of-in-targ)
/// 3. If the target is `.`, check A and AAAA records see [rfc9460](https://www.rfc-editor.org/rfc/rfc9460#name-special-handling-of-in-targ)
pub(crate) fn find(
signed_packet: &SignedPacket,
target: &str,
Expand Down
2 changes: 2 additions & 0 deletions pkarr/src/extra/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#[cfg(feature = "endpoints")]
mod endpoints;

0 comments on commit b8d1597

Please sign in to comment.