use std::collections::{HashMap, HashSet};
use crate::core::id::Id;
#[derive(Debug, Clone)]
pub(crate) struct RoutingTable<T, U> {
pub(crate) local_id: Id,
pub(crate) max_bucket_size: u8,
pub(crate) k: u8,
pub(crate) buckets: HashMap<u32, HashSet<Id>>,
pub(crate) peer_list: HashMap<Id, U>,
pub(crate) id_list: HashMap<T, Id>,
}