remove unneeded code

This commit is contained in:
Ivan Folgueira Bande 2024-11-14 15:10:28 +07:00
parent 10b00a6130
commit fd5930e542
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7
1 changed files with 0 additions and 12 deletions

View File

@ -47,18 +47,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
match event {
Event::WakuMessage(evt) => {
println!("WakuMessage event received: {:?}", evt.waku_message);
// let message = evt.waku_message;
// let payload = message.payload.to_vec();
// match from_utf8(&payload) {
// Ok(msg) => {
// // Lock succeeded, proceed to send the message
// println!("Message received {}", msg);
// }
// Err(e) => {
// eprintln!("Failed to decode payload as UTF-8: {}", e);
// // Handle the error as needed, or just log and skip
// }
// }
}
Event::Unrecognized(err) => panic!("Unrecognized waku event: {:?}", err),
_ => panic!("event case not expected"),