Skip to content

Commit

Permalink
refactor(pubky): replace pkarr_publish/pkarr_resolve with pkarr.publi…
Browse files Browse the repository at this point in the history
…sh/pkarr.resolve
  • Loading branch information
Nuhvi committed Sep 22, 2024
1 parent 5aa53f4 commit ad9db81
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pubky/src/shared/pkarr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl PubkyClient {
keypair: &Keypair,
host: &str,
) -> Result<()> {
let existing = self.pkarr_resolve(&keypair.public_key()).await?;
let existing = self.pkarr.resolve(&keypair.public_key()).await?;

let mut packet = Packet::new_reply(0);

Expand All @@ -42,7 +42,7 @@ impl PubkyClient {

let signed_packet = SignedPacket::from_packet(keypair, &packet)?;

self.pkarr_publish(&signed_packet).await?;
self.pkarr.publish(&signed_packet).await?;

Ok(())
}
Expand Down Expand Up @@ -81,7 +81,8 @@ impl PubkyClient {
step += 1;

if let Some(signed_packet) = self
.pkarr_resolve(&public_key)
.pkarr
.resolve(&public_key)
.await
.map_err(|_| Error::ResolveEndpoint(original_target.into()))?
{
Expand Down

0 comments on commit ad9db81

Please sign in to comment.