Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuhvi committed Nov 23, 2023
1 parent 42e76d8 commit 429e23e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkarr/examples/async/relay-client.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

//! This example shows how to publish and resolve [ResourceRecord]s to and from a Pkarr
//! [relay](https://github.com/Nuhvi/pkarr/blob/main/design/relays.md).
//!
Expand Down Expand Up @@ -61,7 +60,9 @@ async fn main() -> Result<()> {
let signed_packet = SignedPacket::from_packet(&keypair, &packet)?;

let client = PkarrClient::new();
client.relay_put(&Url::parse(relay1).unwrap(), signed_packet).await?;
client
.relay_put(&Url::parse(relay1).unwrap(), signed_packet)
.await?;

println!("Published pk:{}", keypair);
}
Expand All @@ -73,7 +74,9 @@ async fn main() -> Result<()> {

let instant = Instant::now();

let signed_packet = reader.relay_get(&Url::parse(relay2).unwrap(), keypair.public_key()).await?;
let signed_packet = reader
.relay_get(&Url::parse(relay2).unwrap(), keypair.public_key())
.await?;

println!("Resolved in {:?} \n{}", instant.elapsed(), signed_packet);
}
Expand Down

0 comments on commit 429e23e

Please sign in to comment.