mirror of
https://github.com/aljazceru/pubky-core.git
synced 2025-12-19 06:54:19 +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 tokio::sync::oneshot;
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
use pkarr::Keypair;
|
use pkarr::{Keypair, PkarrClientAsync};
|
||||||
|
|
||||||
use ::pkarr::{mainline::dht::Testnet, PkarrClient, PublicKey, SignedPacket};
|
use ::pkarr::{mainline::dht::Testnet, PkarrClient, PublicKey, SignedPacket};
|
||||||
|
|
||||||
@@ -112,6 +112,13 @@ impl PubkyClient {
|
|||||||
builder.build()
|
builder.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// === Getters ===
|
||||||
|
|
||||||
|
/// Returns a reference to the internal [pkarr] Client.
|
||||||
|
pub fn pkarr(&self) -> &PkarrClientAsync {
|
||||||
|
&self.pkarr
|
||||||
|
}
|
||||||
|
|
||||||
// === Auth ===
|
// === Auth ===
|
||||||
|
|
||||||
/// Signup to a homeserver and update Pkarr accordingly.
|
/// Signup to a homeserver and update Pkarr accordingly.
|
||||||
|
|||||||
Reference in New Issue
Block a user