refactor(pubky): replace pkarr_publish/pkarr_resolve with pkarr.publish/pkarr.resolve

This commit is contained in:
nazeh
2024-09-22 19:09:17 +03:00
parent 5aa53f4873
commit ad9db81b00

View File

@@ -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);
@@ -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(())
}
@@ -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()))?
{