diff --git a/backend/Cargo.lock b/backend/Cargo.lock index d30d22f..8bac687 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "actix" version = "0.10.0" @@ -2383,6 +2385,7 @@ dependencies = [ "chrono", "clap", "fnv", + "lazy_static", "log", "num-traits", "parking_lot 0.11.0", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 27651bf..f1d0adf 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -23,10 +23,11 @@ parking_lot = "0.11" reqwest = "0.9.18" rustc-hash = "1.1.0" clap = "3.0.0-beta.2" +lazy_static = "1" [profile.release] lto = true panic = "abort" [patch.crates-io] -actix-web = { git = "https://github.com/maciejhirsz/actix-web", branch = "no-panic-normalize" } \ No newline at end of file +actix-web = { git = "https://github.com/maciejhirsz/actix-web", branch = "no-panic-normalize" } diff --git a/backend/src/aggregator.rs b/backend/src/aggregator.rs index 29cdc36..52d0622 100644 --- a/backend/src/aggregator.rs +++ b/backend/src/aggregator.rs @@ -1,5 +1,6 @@ -use std::collections::HashMap; +use std::collections::{HashMap, HashSet}; use actix::prelude::*; +use lazy_static::lazy_static; use crate::node::connector::Initialize; use crate::feed::connector::{FeedConnector, Connected, FeedId}; @@ -20,9 +21,27 @@ pub struct ChainEntry { addr: Addr, label: Label, network_id: Option