nym-api caching node self described information

This commit is contained in:
Jędrzej Stuczyński
2023-10-05 17:11:24 +01:00
parent 00cdc5010a
commit baf7178dc8
27 changed files with 388 additions and 46 deletions
+1
View File
@@ -180,6 +180,7 @@ pub(crate) async fn annotate_gateways_with_details(
annotated.push(GatewayBondAnnotated {
blacklisted: blacklist.contains(&gateway_bond.gateway.identity_key),
gateway_bond,
self_described: None,
performance,
node_performance,
});
+6 -7
View File
@@ -1,6 +1,12 @@
// Copyright 2021 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: Apache-2.0
use self::cache::refresher::NodeStatusCacheRefresher;
use crate::support::config;
use crate::{
nym_contract_cache::cache::NymContractCache,
support::{self, storage},
};
pub(crate) use cache::NodeStatusCache;
use nym_task::TaskManager;
use okapi::openapi3::OpenApi;
@@ -8,13 +14,6 @@ use rocket::Route;
use rocket_okapi::{openapi_get_routes_spec, settings::OpenApiSettings};
use std::time::Duration;
use crate::support::config;
use crate::{
nym_contract_cache::cache::NymContractCache,
support::{self, storage},
};
use self::cache::refresher::NodeStatusCacheRefresher;
pub(crate) mod cache;
pub(crate) mod helpers;
pub(crate) mod local_guard;