Skip to content

Commit

Permalink
Change onWill topic to be correct OnWill topic
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Duncan committed Apr 25, 2023
1 parent 4607c74 commit e9e8ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (pmh *PubsubMessagingHook) OnWillSent(cl *mqtt.Client, pk packets.Packet) {
return
}

if err := publish(pmh.publishTopic, OnWillSentMessage{
if err := publish(pmh.willTopic, OnWillSentMessage{
ClientID: cl.ID,
Topic: pk.TopicName,
Payload: pk.Payload,
Expand Down

0 comments on commit e9e8ae9

Please sign in to comment.