(neigh *state.Neighbour)
| 232 | } |
| 233 | |
| 234 | func buildNeighRoutes(neigh *state.Neighbour) []*protocol.NeighRoute { |
| 235 | routes := make([]*protocol.NeighRoute, 0, len(neigh.Routes)) |
| 236 | for _, route := range neigh.Routes { |
| 237 | routes = append(routes, neighRouteProto(route)) |
| 238 | } |
| 239 | slices.SortFunc(routes, func(a, b *protocol.NeighRoute) int { |
| 240 | return comparePubRoute(a.PubRoute, b.PubRoute) |
| 241 | }) |
| 242 | return routes |
| 243 | } |
| 244 | |
| 245 | func buildRouteTables(n *Nylon) *protocol.RouteTables { |
| 246 | tables := &protocol.RouteTables{} |
no test coverage detected