Skip to content

Commit

Permalink
feat: subscribe to the correct event name when registering a docker s…
Browse files Browse the repository at this point in the history
…caler (#31)

Co-authored-by: Vishnu Bharathi <vishnubharathi04@gmail.com>
  • Loading branch information
legosandorigami and scriptnull authored Aug 16, 2024
1 parent 9a7d8ad commit 660f572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/scaler/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (s *Scaler) Register(ctx context.Context) error {
}
cli.NegotiateAPIVersion(ctx)

event.B.Subscribe(s.namespacedID, func(_ []byte) {
event.B.Subscribe(fmt.Sprintf("%s.input", s.namespacedID), func(_ []byte) {
s.log.Verbose("start")

imageFullName := fmt.Sprintf("%s:%s", s.imageName, s.imageTag)
Expand Down

0 comments on commit 660f572

Please sign in to comment.