Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit d6c1a4a

Browse files
committed
move messages to their own dir
1 parent 7bd1009 commit d6c1a4a

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

crates/p2p/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@ use libp2p::{identity, Transport};
1111
use std::time::Duration;
1212

1313
mod behaviour;
14-
mod challenge_message;
1514
mod message;
1615
mod protocol;
1716

1817
use behaviour::Behaviour;
1918
use protocol::Protocols;
2019

21-
// TODO: put these in a mod
22-
pub use challenge_message::*;
2320
pub use message::*;
2421

2522
pub type Libp2pIncomingMessage = libp2p::request_response::Message<Request, Response>;
File renamed without changes.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ use libp2p::PeerId;
22
use serde::{Deserialize, Serialize};
33
use std::time::SystemTime;
44

5-
use crate::ChallengeRequest;
6-
use crate::ChallengeResponse;
5+
mod hardware_challenge;
6+
7+
pub use hardware_challenge::*;
78

89
#[derive(Debug)]
910
pub struct IncomingMessage {

0 commit comments

Comments
 (0)