aboutsummaryrefslogtreecommitdiffstats
path: root/src/peer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/peer.rs')
-rw-r--r--src/peer.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/peer.rs b/src/peer.rs
index e4dff8b..2dff10e 100644
--- a/src/peer.rs
+++ b/src/peer.rs
@@ -20,9 +20,6 @@ pub struct Peer<T> {
// external identifier
pub(crate) identifier: T,
- // internal identifier
- pub(crate) idx: usize,
-
// mutable state
state: Mutex<State>,
timestamp: Mutex<Option<timestamp::TAI64N>>,
@@ -67,13 +64,11 @@ where
T: Copy,
{
pub fn new(
- idx: usize,
identifier: T, // external identifier
pk: PublicKey, // public key of peer
ss: SharedSecret, // precomputed DH(static, static)
) -> Self {
Self {
- idx: idx,
identifier: identifier,
state: Mutex::new(State::Reset),
timestamp: Mutex::new(None),