feat: Add p2p monitoring and improve p2p node communication

This commit is contained in:
Matthew Esposito 2025-04-19 22:30:59 -04:00
parent 3f0b27604b
commit 34e2fd23ac
6 changed files with 404 additions and 19 deletions

View file

@ -4,7 +4,7 @@
use cached::proc_macro::cached;
use clap::{Arg, ArgAction, Command};
use redlib::p2p::ONLINE;
use redlib::p2p::{map_json, ONLINE};
use std::str::FromStr;
use std::sync::atomic::Ordering;
@ -239,6 +239,8 @@ async fn main() {
resource("", "text/plain", false).boxed()
});
app.at("/map.json").get(|_| async move { map_json().await }.boxed());
// Read static files
app.at("/style.css").get(|_| style().boxed());
app