merkel generation + render
This commit is contained in:
@@ -61,15 +61,23 @@ pub fn start_p2p_executor(
|
||||
if let Ok(cmd) = cmd_rx.try_recv() {
|
||||
match cmd {
|
||||
NetworkCommand::ConnectPeer(addr) => {
|
||||
println!("Attempting to connect to: {}", addr);
|
||||
println!("[Network] ConnectPeer() called");
|
||||
println!("[Network] Attempting to connect to: {}", addr);
|
||||
// Network logic to connect...
|
||||
// If successful, send an event back:
|
||||
// event_tx.send(NetworkEvent::PeerConnected(addr)).unwrap();
|
||||
},
|
||||
NetworkCommand::RequestFileTree(_) => todo!(),
|
||||
NetworkCommand::RequestFileTree(_) => {
|
||||
println!("[Network] RequestFileTree() called");
|
||||
},
|
||||
|
||||
// ... handle other commands
|
||||
NetworkCommand::RequestDirectoryContent(_, _) => todo!(),
|
||||
NetworkCommand::RequestChunk(_, _) => todo!(),
|
||||
NetworkCommand::RequestDirectoryContent(_, _) => {
|
||||
println!("[Network] RequestDirectoryContent() called");
|
||||
},
|
||||
NetworkCommand::RequestChunk(_, _) => {
|
||||
println!("[Network] RequestChunk() called");
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user