removed redundant fields from handshake.rs
This commit is contained in:
parent
5a535cf03c
commit
266a8ed1fb
|
@ -50,7 +50,6 @@ pub fn handshake<A>(a: A, magic: Magic, version: Version) -> Handshake<A> where
|
|||
Handshake {
|
||||
state: HandshakeState::SendVersion(write_message(a, &version_message(magic, version))),
|
||||
magic: magic,
|
||||
counter: 0,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -67,7 +66,6 @@ pub fn accept_handshake<A>(a: A, magic: Magic, version: Version) -> AcceptHandsh
|
|||
pub struct Handshake<A> {
|
||||
state: HandshakeState<A>,
|
||||
magic: Magic,
|
||||
counter: u32,
|
||||
}
|
||||
|
||||
pub struct AcceptHandshake<A> {
|
||||
|
|
Loading…
Reference in New Issue