Commit 9eacbb9e authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Simplify service routing key

parent cb73af4a
......@@ -39,13 +39,13 @@ func (c consumer) Log(formatString string, params ...interface{}) {
func (c *config) consumer() (cons *consumer) {
var serviceRoutingKeys, groupRoutingKeys []string
for _, service := range c.Services {
serviceRoutingKeys = append(serviceRoutingKeys, fmt.Sprintf("service.%s", service.Name))
serviceRoutingKeys = append(serviceRoutingKeys, service.Name)
}
for groupName, services := range c.GroupToServices {
groupRoutingKeys = append(groupRoutingKeys, fmt.Sprintf("%s", groupName))
for _, service := range services {
serviceRoutingKeys = append(serviceRoutingKeys, fmt.Sprintf("service.%s", service.Name))
serviceRoutingKeys = append(serviceRoutingKeys, service.Name)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment