func (s *Server) Nodes() (nis []krpc.NodeInfo) {
	s.mu.Lock()
	defer s.mu.Unlock()
	s.table.forNodes(func(n *node) bool {
		nis = append(nis, krpc.NodeInfo{
			Addr: n.addr.KRPC(),
			ID:   n.id.AsByteArray(),
		})
		return true
	})
	return
}
func (s *Server) Nodes() (nis []krpc.NodeInfo) {
	s.mu.Lock()
	defer s.mu.Unlock()
	s.table.forNodes(func(n *node) bool {
		nis = append(nis, krpc.NodeInfo{
			Addr: n.addr.KRPC(),
			ID:   n.id.AsByteArray(),
		})
		return true
	})
	return
}
func ( s * Server ) Nodes ( ) ( nis [ ] krpc . NodeInfo ) { s . mu . Lock ( ) defer s . mu . Unlock ( ) s . table . forNodes ( func ( n * node ) bool { nis = append ( nis , krpc . NodeInfo { Addr : n . addr . KRPC ( ) , ID : n . id . AsByteArray ( ) , } ) return true } ) return }
// Exports the current node table.
Exports the current node table .