Skip to content

Commit

Permalink
feat(pubky): add [PubkyClient::pkarr] method to return ref to pkarr c…
Browse files Browse the repository at this point in the history
…lient
  • Loading branch information
Nuhvi committed Sep 28, 2024
1 parent 6897671 commit f2a4fe3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pubky/src/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use reqwest::{RequestBuilder, Response};
use tokio::sync::oneshot;
use url::Url;

use pkarr::Keypair;
use pkarr::{Keypair, PkarrClientAsync};

use ::pkarr::{mainline::dht::Testnet, PkarrClient, PublicKey, SignedPacket};

Expand Down Expand Up @@ -112,6 +112,13 @@ impl PubkyClient {
builder.build()
}

// === Getters ===

/// Returns a reference to the internal [pkarr] Client.
pub fn pkarr(&self) -> &PkarrClientAsync {
&self.pkarr
}

// === Auth ===

/// Signup to a homeserver and update Pkarr accordingly.
Expand Down

0 comments on commit f2a4fe3

Please sign in to comment.