Skip to content

Commit

Permalink
Comment out unused constants
Browse files Browse the repository at this point in the history
  • Loading branch information
ryardley committed Nov 22, 2024
1 parent 47e7184 commit e71ffed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions packages/ciphernode/p2p/src/constants.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use std::time::Duration;
// use std::time::Duration;

use libp2p::StreamProtocol;
// use libp2p::StreamProtocol;

pub const TICK_INTERVAL: Duration = Duration::from_secs(15);
pub const KADEMLIA_PROTOCOL_NAME: StreamProtocol = StreamProtocol::new("/enclave/kad/1.0.0");
// pub const TICK_INTERVAL: Duration = Duration::from_secs(15);
// pub const KADEMLIA_PROTOCOL_NAME: StreamProtocol = StreamProtocol::new("/enclave/kad/1.0.0");
pub const PORT_QUIC: u16 = 9091;
pub const LOCAL_KEY_PATH: &str = "./local_key";
pub const LOCAL_CERT_PATH: &str = "./cert.pem";
pub const GOSSIPSUB_PEER_DISCOVERY: &str = "enclave-keygen-peer-discovery";
// pub const LOCAL_KEY_PATH: &str = "./local_key";
// pub const LOCAL_CERT_PATH: &str = "./cert.pem";
// pub const GOSSIPSUB_PEER_DISCOVERY: &str = "enclave-keygen-peer-discovery";
pub const BOOTSTRAP_NODES: [&str; 0] = [
// TODO: Add bootstrap nodes
];
2 changes: 1 addition & 1 deletion packages/ciphernode/p2p/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![crate_name = "p2p"]
#![crate_type = "lib"]
#![warn(missing_docs, unused_imports)]
// #![warn(missing_docs, unused_imports)]

mod constants;
mod libp2p_router;
Expand Down

0 comments on commit e71ffed

Please sign in to comment.