Skip to content

Commit 660f572

Browse files
feat: subscribe to the correct event name when registering a docker scaler (#31)
Co-authored-by: Vishnu Bharathi <[email protected]>
1 parent 9a7d8ad commit 660f572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/scaler/docker/docker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (s *Scaler) Register(ctx context.Context) error {
3737
}
3838
cli.NegotiateAPIVersion(ctx)
3939

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

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

0 commit comments

Comments
 (0)