mirror of
https://github.com/aljazceru/pubky-core.git
synced 2025-12-18 14:34:25 +01:00
feat(pubky): add [PubkyClient::pkarr] method to return ref to pkarr client
This commit is contained in:
@@ -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};
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user