Skip to content

Commit

Permalink
add debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyuyureka committed Dec 27, 2023
1 parent 5f7cea0 commit ce65f60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions frontend/src/cache.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
export let routers;
export let communities;
export const initCache = async () => {
[routers, communities] = await Promise.all([
fetch("/api/routers").then(resp => resp.json()),
fetch("/communities.json").then(resp => resp.json())
]);
routers = await fetch("/api/routers").then(resp => resp.json());
};
1 change: 1 addition & 0 deletions src/bmp_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ pub async fn run_client(
None => warn!("message for nonexisting peer: {:?}", &rm),
},
BmpMessage::PeerUpNotification(n) => {
info!("peer up: {} {:?}", n.peer.peeraddress, &n);
channels.insert(n.peer.peeraddress, run_peer(client_addr, n, store));
}
BmpMessage::PeerDownNotification(n) => match channels.remove(&n.peer.peeraddress) {
Expand Down

0 comments on commit ce65f60

Please sign in to comment.