Skip to content

Commit

Permalink
refactor(pubky): simplify internals mod after using pkarr client
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuhvi committed Sep 22, 2024
1 parent ad9db81 commit 9fd8501
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 38 deletions.
16 changes: 0 additions & 16 deletions pubky/src/native/internals.rs
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
use pkarr::SignedPacket;
use pubky_common::crypto::PublicKey;
use reqwest::RequestBuilder;
use url::Url;

use crate::error::Result;
use crate::PubkyClient;

mod endpoints;
pub mod resolver;

impl PubkyClient {
// === Pkarr ===

pub(crate) async fn pkarr_resolve(
&self,
public_key: &PublicKey,
) -> Result<Option<SignedPacket>> {
Ok(self.pkarr.resolve(public_key).await?)
}

pub(crate) async fn pkarr_publish(&self, signed_packet: &SignedPacket) -> Result<()> {
Ok(self.pkarr.publish(signed_packet).await?)
}

// === HTTP ===

pub(crate) fn inner_request(&self, method: reqwest::Method, url: Url) -> RequestBuilder {
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions pubky/src/wasm/internals/mod.rs

This file was deleted.

20 changes: 0 additions & 20 deletions pubky/src/wasm/internals/pkarr.rs

This file was deleted.

0 comments on commit 9fd8501

Please sign in to comment.