Skip to content

Commit

Permalink
fix: Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan46 committed Feb 13, 2025
1 parent eb4c66b commit 30ffaf7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
10 changes: 6 additions & 4 deletions node/src/service/p2p/bootstrap.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use std::collections::HashMap;
use std::hash::{DefaultHasher, Hash, Hasher};
use std::io::{Error, ErrorKind};
use std::time::Duration;
use std::{
collections::HashMap,
hash::{DefaultHasher, Hash, Hasher},
io::{Error, ErrorKind},
time::Duration,
};

use libp2p::{
futures::StreamExt,
Expand Down
3 changes: 1 addition & 2 deletions primitives/src/p2p.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use std::{path::PathBuf, str::FromStr};

use ed25519_dalek::{pkcs8::DecodePrivateKey, SigningKey};
use libp2p::identity::Keypair;
use libp2p::{Multiaddr, PeerId};
use libp2p::{Multiaddr, PeerId, identity::Keypair};
use serde::{de, Deserialize, Serialize, Serializer};

/// Parses a ED25519 private key into a Keypair.
Expand Down
9 changes: 5 additions & 4 deletions storage-provider/client/examples/peer-resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ use std::time::Duration;

use anyhow::{bail, Result};
use clap::Parser;
use libp2p::futures::StreamExt;
use libp2p::request_response::{Message, ProtocolSupport};
use libp2p::swarm::SwarmEvent;
use libp2p::{
noise, request_response, tcp, yamux, Multiaddr, PeerId, StreamProtocol, Swarm, SwarmBuilder,
futures::StreamExt,
noise,
request_response::{self, Message, ProtocolSupport},
swarm::SwarmEvent,
tcp, yamux, Multiaddr, PeerId, StreamProtocol, Swarm, SwarmBuilder,
};
use primitives::p2p::{PeerIdRequest, PeerInfoResponse};
use tracing_subscriber::EnvFilter;
Expand Down

0 comments on commit 30ffaf7

Please sign in to comment.