keep dht peers alive

This commit is contained in:
Arceliar 2018-06-07 10:58:24 -05:00
parent deb755e3e9
commit 3dab94be9f
4 changed files with 21 additions and 18 deletions

View file

@ -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)
}