mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-02 11:26:17 +00:00
keep dht peers alive
This commit is contained in:
@ -81,7 +81,7 @@ type dht struct {
|
||||
func (t *dht) init(c *Core) {
|
||||
t.core = c
|
||||
t.nodeID = *t.core.GetNodeID()
|
||||
t.peers = make(chan *dhtInfo, 1)
|
||||
t.peers = make(chan *dhtInfo, 1024)
|
||||
t.reqs = make(map[boxPubKey]map[NodeID]time.Time)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user