// aggregator returns the host responsible for aggregation of flows // for the given forwarder host. func aggregator(forwarder *config.Host, config *config.Config) (*config.Host, bool) { for _, host := range config.Cluster(forwarder.ClusterID) { hc, ok := hostConfig(host) if !ok { continue } if hc.Aggregator { return host, true } } return nil, false }