mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-11 00:49:38 +00:00
feat: Add p2p monitoring and improve p2p node communication
This commit is contained in:
parent
3f0b27604b
commit
34e2fd23ac
6 changed files with 404 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue