Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
corrrect PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
musitdev committed Jan 24, 2024
1 parent 6cf6fc3 commit 05e2dd9
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.txt
.DS_Store
.idea
*.pki
crates/tests/e2e-tests/files
crates/tests/e2e-tests/prover
crates/tests/e2e-tests/verifier
1 change: 0 additions & 1 deletion crates/cli/localkey.pki

This file was deleted.

2 changes: 0 additions & 2 deletions crates/cli/src/keyfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ pub fn read_key_file(file_path: &PathBuf) -> crate::BoxResult<SecretKey> {
let key_array = fs::read(file_path)?;
Ok(SecretKey::parse_slice(&key_array)?)
}

//pub print_pub_key
6 changes: 1 addition & 5 deletions crates/node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,8 @@ async fn run(config: Arc<Config>) -> Result<()> {
)
.await?;

tracing::info!("gevulot node started");
// loop {
// sleep(Duration::from_secs(1));
// }
if let Err(err) = download_jh.await {
tracing::info!("dwn mng error:{err}");
tracing::info!("download_manager error:{err}");
}
Ok(())
}
Expand Down
11 changes: 0 additions & 11 deletions crates/node/src/networking/download_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ use tokio::net::TcpListener;
use tokio::task::JoinHandle;
use tokio_util::io::ReaderStream;

// pub struct DownloadManager {
// file_server_jh: JoinHandle<()>,
// }

// impl DownloadManager {
// pub async fn new(config: &Config, bind_addr: SocketAddr) -> Result<Self> {
// let file_server_jh = serve_file(config).await?;
// Ok(DownloadManager { file_server_jh })
// }
// }

//start the local server and serve the specified file path.
//Return the server task join handle.
pub async fn serve_files(config: &Config) -> Result<JoinHandle<()>> {
Expand Down
4 changes: 0 additions & 4 deletions crates/node/src/networking/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
pub mod download_manager;
mod noise;
pub mod p2p;

// #[allow(unused_imports)]
// pub use download_manager::DownloadManager;

pub use p2p::P2P;

0 comments on commit 05e2dd9

Please sign in to comment.