Got rid of compiler warnings
This commit is contained in:
@@ -11,12 +11,12 @@ pub(crate) struct PacketForwarder<'a> {
|
||||
conn_rx: mpsc::UnboundedReceiver<(SocketAddr, Vec<u8>)>,
|
||||
}
|
||||
|
||||
impl<'a: 'static> PacketForwarder<'a> {
|
||||
impl PacketForwarder<'static> {
|
||||
pub(crate) async fn new(
|
||||
initial_endpoints: Vec<SocketAddr>,
|
||||
initial_reconnection_backoff: Duration,
|
||||
maximum_reconnection_backoff: Duration,
|
||||
) -> PacketForwarder<'a> {
|
||||
) -> PacketForwarder<'static> {
|
||||
let tcp_client_config = multi_tcp_client::Config::new(
|
||||
initial_endpoints,
|
||||
initial_reconnection_backoff,
|
||||
|
||||
@@ -8,7 +8,6 @@ use sphinx::{ProcessedPacket, SphinxPacket};
|
||||
use std::net::SocketAddr;
|
||||
use std::ops::Deref;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum MixProcessingError {
|
||||
@@ -20,6 +19,7 @@ pub enum MixProcessingError {
|
||||
|
||||
pub enum MixProcessingResult {
|
||||
ForwardHop(SocketAddr, Vec<u8>),
|
||||
#[allow(dead_code)]
|
||||
LoopMessage,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user