Skip to content

Commit

Permalink
fix: Include hyphenated worker names
Browse files Browse the repository at this point in the history
When publishing the dispatchers table, include both underscore names
and classic hyphenated names.
  • Loading branch information
subpop committed Sep 12, 2024
1 parent 8eb214b commit 42a681b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/work/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ func (d *Dispatcher) FlattenDispatchers() map[string]map[string]string {
dispatchers := make(map[string]map[string]string)
d.features.Visit(func(k string, v map[string]string) {
dispatchers[k] = v
dispatchers[strings.ReplaceAll(k, "_", "-")] = v
})

return dispatchers
Expand Down

0 comments on commit 42a681b

Please sign in to comment.