mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
better cleanup of maps
This commit is contained in:
parent
8d6beebac4
commit
4e156bd4f7
6 changed files with 53 additions and 18 deletions
|
@ -175,7 +175,6 @@ func (p *peer) doSendSwitchMsgs() {
|
|||
// This must be launched in a separate goroutine by whatever sets up the peer struct.
|
||||
// It handles link protocol traffic.
|
||||
func (p *peer) linkLoop() {
|
||||
go p.doSendSwitchMsgs()
|
||||
tick := time.NewTicker(time.Second)
|
||||
defer tick.Stop()
|
||||
for {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue