Skip to content

Commit

Permalink
worker: fix publish subject - should be suffix and not the whole
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Jun 2, 2023
1 parent af40c5b commit 54c65e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,9 @@ func (e *statusEmitter) Publish(hCtx *sm.HandlerContext, task *model.Task) {
panic("unable to marshal a condition update" + err.Error())
}

subject := fmt.Sprintf("com.hollow.sh.controllers.responses.%s.update", hCtx.FacilityCode)
if err := e.stream.Publish(
hCtx.Ctx,
subject,
string(cptypes.FirmwareInstall),
byt,
); err != nil {
e.logger.WithError(err).Error("error publishing condition update")
Expand Down

0 comments on commit 54c65e5

Please sign in to comment.