Clean up unused imports
This commit is contained in:
@@ -37,7 +37,6 @@ use crate::init::{
|
||||
};
|
||||
use futures::channel::mpsc;
|
||||
use futures::SinkExt;
|
||||
// use log::*;
|
||||
use nym_bandwidth_controller::BandwidthController;
|
||||
use nym_client_core_config_types::{ForgetMe, RememberMe};
|
||||
use nym_client_core_gateways_storage::{GatewayDetails, GatewaysDetailsStore};
|
||||
@@ -68,9 +67,7 @@ use std::os::raw::c_int as RawFd;
|
||||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
use time::OffsetDateTime;
|
||||
use tokio::sync::mpsc::Sender;
|
||||
use tokio_util::sync::{PollSendError, PollSender};
|
||||
// use tracing::*;
|
||||
use tracing::{debug, error, info};
|
||||
use url::Url;
|
||||
|
||||
|
||||
@@ -3,10 +3,7 @@
|
||||
|
||||
use futures::channel::mpsc;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
time::{Duration, Instant},
|
||||
};
|
||||
use std::collections::HashMap;
|
||||
|
||||
// const LANE_CONSIDERED_CLEAR: usize = 10;
|
||||
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
// use nym_sdk::mixnet::Recipient;
|
||||
use nym_sphinx::addressing::clients::Recipient;
|
||||
use nym_sphinx::addressing::nodes::NodeIdentity;
|
||||
|
||||
use crate::{Error, error::Result};
|
||||
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use nym_sphinx::addressing::clients::Recipient;
|
||||
use nym_sphinx::addressing::nodes::NodeIdentity;
|
||||
use std::fmt::{Display, Formatter};
|
||||
// use nym_sdk::mixnet::NodeIdentity;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use tracing::debug;
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@ use std::{
|
||||
};
|
||||
|
||||
use nym_offline_monitor::ConnectivityHandle;
|
||||
// use nym_sdk::mixnet::NodeIdentity;
|
||||
use nym_sphinx::addressing::clients::Recipient;
|
||||
use nym_sphinx::addressing::nodes::NodeIdentity;
|
||||
use strum::IntoEnumIterator;
|
||||
use tokio::task::JoinHandle;
|
||||
|
||||
@@ -6,8 +6,6 @@ mod error;
|
||||
pub mod gateway_cache;
|
||||
mod gateway_client;
|
||||
mod helpers;
|
||||
use nym_sphinx::addressing::clients::Recipient;
|
||||
use nym_sphinx::addressing::nodes::NodeIdentity;
|
||||
pub use nym_vpn_api_client::types::{GatewayMinPerformance, NaiveFloat, Percent};
|
||||
|
||||
pub use crate::{
|
||||
|
||||
@@ -16,7 +16,6 @@ workspace = true
|
||||
bincode.workspace = true
|
||||
bytes.workspace = true
|
||||
futures.workspace = true
|
||||
# nym-gateway-directory = { path = "../nym-gateway-directory" }
|
||||
nym-ip-packet-requests = { path = "../common/ip-packet-requests" }
|
||||
nym-sdk = {path = "../sdk/rust/nym-sdk" }
|
||||
thiserror.workspace = true
|
||||
|
||||
@@ -70,6 +70,7 @@ tempfile = { workspace = true }
|
||||
|
||||
nym-ip-packet-requests = { path = "../../../common/ip-packet-requests" }
|
||||
|
||||
|
||||
# tcpproxy dependencies
|
||||
clap = { workspace = true, features = ["derive"] }
|
||||
anyhow.workspace = true
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
use nym_validator_client::nyxd::error::NyxdError;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use crate::error;
|
||||
|
||||
use nym_ip_packet_requests::v8::response::{ConnectFailureReason, IpPacketResponseData};
|
||||
|
||||
/// Top-level Error enum for the mixnet client and its relevant types.
|
||||
|
||||
@@ -32,7 +32,7 @@ use std::task::{Context, Poll};
|
||||
use std::time::Duration;
|
||||
use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
|
||||
use tokio::sync::RwLockReadGuard;
|
||||
use tokio_util::codec::{Encoder, FramedRead, FramedWrite};
|
||||
use tokio_util::codec::{Encoder, FramedRead};
|
||||
use tokio_util::sync::CancellationToken;
|
||||
|
||||
/// Client connected to the Nym mixnet.
|
||||
|
||||
@@ -9,7 +9,6 @@ use crate::UserAgent;
|
||||
use crate::{mixnet::Recipient, Error};
|
||||
|
||||
use bytes::Bytes;
|
||||
use bytes::BytesMut;
|
||||
use nym_gateway_directory::{
|
||||
Config as GatewayConfig, GatewayClient, GatewayType, IpPacketRouterAddress,
|
||||
};
|
||||
@@ -27,9 +26,9 @@ use std::io;
|
||||
use std::pin::Pin;
|
||||
use std::task::{Context, Poll};
|
||||
use std::time::Duration;
|
||||
use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, ReadBuf};
|
||||
use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
|
||||
use tokio::sync::oneshot;
|
||||
use tokio_util::codec::{Decoder, FramedRead};
|
||||
use tokio_util::codec::FramedRead;
|
||||
use tracing::{debug, error, info};
|
||||
|
||||
const IPR_CONNECT_TIMEOUT: Duration = Duration::from_secs(60);
|
||||
|
||||
Reference in New Issue
Block a user