mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
remove unused field from peer
This commit is contained in:
parent
4045597516
commit
a21a039b57
1 changed files with 0 additions and 2 deletions
|
@ -73,7 +73,6 @@ type peer struct {
|
|||
// Specifically, processing switch messages, signing, and verifying sigs
|
||||
// Resets at the start of each tick
|
||||
throttle uint8
|
||||
lastSend time.Time // To throttle sends, use only from linkLoop goroutine
|
||||
}
|
||||
|
||||
const peer_Throttle = 1
|
||||
|
@ -158,7 +157,6 @@ func (p *peer) linkLoop(in <-chan []byte) {
|
|||
if p.msgAnc != nil {
|
||||
lastRSeq = p.msgAnc.seq
|
||||
}
|
||||
p.lastSend = time.Now()
|
||||
p.sendSwitchAnnounce()
|
||||
}
|
||||
counter = (counter + 1) % 4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue