nym-api caching node self described information
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user