node: removing more lifetimes

This commit is contained in:
Dave Hrycyszyn
2019-12-12 19:15:28 +00:00
parent 4feadb6352
commit 06540f5ce1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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> {