Skip to content

Commit

Permalink
fix(inputs.mqtt_consumer): Resolve could not mark message delivered (i…
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj authored Nov 3, 2023
1 parent 7da8956 commit 9e5e74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/mqtt_consumer/mqtt_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ func (m *MQTTConsumer) onMessage(_ mqtt.Client, msg mqtt.Message) {
}
}
}
id := m.acc.AddTrackingMetricGroup(metrics)
m.messagesMutex.Lock()
id := m.acc.AddTrackingMetricGroup(metrics)
m.messages[id] = msg
m.messagesMutex.Unlock()
}
Expand Down

0 comments on commit 9e5e74e

Please sign in to comment.