dht: Use maxNodes hint in node table size

This commit is contained in:
Matt Joiner 2015-05-20 22:24:39 +10:00
parent 9ea28a5094
commit f42e27319f
1 changed files with 1 additions and 1 deletions

View File

@ -552,7 +552,7 @@ func (s *Server) setDefaults() (err error) {
secureNodeId(id[:], util.AddrIP(s.socket.LocalAddr()))
s.id = string(id[:])
}
s.nodes = make(map[string]*node, 10000)
s.nodes = make(map[string]*node, maxNodes)
return
}