From a9fb236e071694310222b6e2b848904fb10bc5cb Mon Sep 17 00:00:00 2001 From: Annika Hannig Date: Wed, 21 Aug 2024 15:17:04 +0200 Subject: [PATCH] added neighbors map --- src/state.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/state.rs b/src/state.rs index 08bf80b..f22cd2e 100644 --- a/src/state.rs +++ b/src/state.rs @@ -1,3 +1,5 @@ +use std::collections::HashMap; + use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; @@ -82,6 +84,8 @@ pub struct Neighbor { pub routes_exported: u32, } +pub type NeighborsMap = HashMap; + #[derive(Serialize, Deserialize, Debug, Clone, Default)] pub struct Community(pub u32, pub u32);