node: removing more lifetimes
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ pub struct MixPeer {
|
||||
connection: String,
|
||||
}
|
||||
|
||||
impl<'a> MixPeer {
|
||||
impl MixPeer {
|
||||
// note that very soon `next_hop_address` will be changed to `next_hop_metadata`
|
||||
pub fn new(next_hop_address: [u8; 32]) -> MixPeer {
|
||||
let address = String::from_utf8_lossy(&next_hop_address)
|
||||
|
||||
+2
-2
@@ -35,7 +35,7 @@ struct ForwardingData {
|
||||
}
|
||||
|
||||
// TODO: this will need to be changed if MixPeer will live longer than our Forwarding Data
|
||||
impl<'a> ForwardingData {
|
||||
impl ForwardingData {
|
||||
fn new(packet: SphinxPacket, delay: SphinxDelay, recipient: MixPeer) -> Self {
|
||||
ForwardingData {
|
||||
packet,
|
||||
@@ -63,7 +63,7 @@ impl ProcessingData {
|
||||
struct PacketProcessor {}
|
||||
|
||||
impl PacketProcessor {
|
||||
pub fn process_sphinx_data_packet<'a>(
|
||||
pub fn process_sphinx_data_packet(
|
||||
packet_data: &[u8],
|
||||
processing_data: Arc<RwLock<ProcessingData>>,
|
||||
) -> Result<ForwardingData, MixProcessingError> {
|
||||
|
||||
Reference in New Issue
Block a user