fixed tests compilation
This commit is contained in:
@@ -8,7 +8,7 @@ use nym_ip_packet_requests::IpPair;
|
||||
use nym_kkt_ciphersuite::{Ciphersuite, KEM, KEMKeyDigests};
|
||||
use nym_sphinx::addressing::Recipient;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::collections::HashMap;
|
||||
use std::collections::BTreeMap;
|
||||
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr};
|
||||
|
||||
pub use lp_messages::*;
|
||||
@@ -56,7 +56,7 @@ pub struct WireguardConfiguration {
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct NymNodeLPInformation {
|
||||
pub address: SocketAddr,
|
||||
pub expected_kem_key_hashes: HashMap<KEM, KEMKeyDigests>,
|
||||
pub expected_kem_key_hashes: BTreeMap<KEM, KEMKeyDigests>,
|
||||
pub x25519: x25519::PublicKey,
|
||||
|
||||
// to be inferred from node's version
|
||||
|
||||
@@ -712,7 +712,6 @@ mod tests {
|
||||
|
||||
let lp_config = LpConfig {
|
||||
debug: LpDebug {
|
||||
timestamp_tolerance: Duration::from_secs(30),
|
||||
..Default::default()
|
||||
},
|
||||
..Default::default()
|
||||
|
||||
@@ -205,7 +205,6 @@ mod tests {
|
||||
|
||||
let lp_config = LpConfig {
|
||||
debug: LpDebug {
|
||||
timestamp_tolerance: Duration::from_secs(30),
|
||||
..Default::default()
|
||||
},
|
||||
..Default::default()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2026 - Nym Technologies SA <contact@nymtech.net>
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::node_status_api::models::{AxumErrorResponse, AxumResult};
|
||||
use crate::node_status_api::models::AxumResult;
|
||||
use crate::support::http::helpers::PaginationRequest;
|
||||
use crate::support::http::state::AppState;
|
||||
use axum::extract::{Query, State};
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
use crate::api::v1::gateway::models::WebSockets;
|
||||
use crate::api::v1::node::models::{
|
||||
AuxiliaryDetails, NodeDescription, NodeRoles, SignedHostInformation,
|
||||
};
|
||||
use crate::routes;
|
||||
use async_trait::async_trait;
|
||||
use nym_bin_common::build_information::BinaryBuildInformationOwned;
|
||||
use nym_http_api_client::{ApiClient, HttpClientError};
|
||||
|
||||
use super::v1::gateway::models::Wireguard;
|
||||
use super::v1::metrics::models::SessionStats;
|
||||
use crate::api::SignedLewesProtocol;
|
||||
use crate::api::v1::authenticator::models::Authenticator;
|
||||
use crate::api::v1::gateway::models::WebSockets;
|
||||
use crate::api::v1::health::models::NodeHealth;
|
||||
use crate::api::v1::ip_packet_router::models::IpPacketRouter;
|
||||
use crate::api::v1::lewes_protocol::models::LewesProtocol;
|
||||
use crate::api::v1::network_requester::exit_policy::models::UsedExitPolicy;
|
||||
use crate::api::v1::network_requester::models::NetworkRequester;
|
||||
use crate::api::v1::node::models::{
|
||||
AuxiliaryDetails, NodeDescription, NodeRoles, SignedHostInformation,
|
||||
};
|
||||
use crate::api::v1::node_load::models::NodeLoad;
|
||||
use crate::routes;
|
||||
use async_trait::async_trait;
|
||||
use nym_bin_common::build_information::BinaryBuildInformationOwned;
|
||||
use nym_http_api_client::{ApiClient, HttpClientError};
|
||||
|
||||
pub use nym_http_api_client::Client;
|
||||
|
||||
pub type NymNodeApiClientError = HttpClientError;
|
||||
|
||||
@@ -707,11 +707,11 @@ where
|
||||
/// the gateway to look up the session for decryption.
|
||||
///
|
||||
/// # Returns
|
||||
/// * `Ok(u32)` - The session ID
|
||||
/// * `Ok(u64)` - The session ID
|
||||
///
|
||||
/// # Errors
|
||||
/// Returns an error if handshake has not been completed.
|
||||
pub fn session_id(&self) -> Result<u32> {
|
||||
pub fn session_id(&self) -> Result<u64> {
|
||||
self.state_machine()?
|
||||
.session()
|
||||
.map(|s| s.receiver_index())
|
||||
|
||||
Reference in New Issue
Block a user