Fixed: MQTT: more consistent name for PUBREL durable (#4466)

Resolves: no ticket

### Changes proposed in this pull request:

- rename PUBREL durable consumer from `<idhash>_pubrel` to
`$MQTT_PUBREL_<idhash>` for consistency with other durable consumer
names.
This commit is contained in:
Derek Collison
2023-08-31 17:15:00 -07:00
committed by GitHub

View File

@@ -126,6 +126,7 @@ const (
// Stream name and subjects for outgoing MQTT QoS2 PUBREL messages
mqttQoS2PubRelStreamName = "$MQTT_qos2out"
mqttQoS2PubRelConsumerDurablePrefix = "$MQTT_PUBREL_"
mqttQoS2PubRelStoredSubjectPrefix = "$MQTT.qos2.out."
mqttQoS2PubRelDeliverySubjectPrefix = "$MQTT.qos2.delivery."
@@ -4465,7 +4466,7 @@ func (sess *mqttSession) ensurePubRelConsumerSubscription(c *client) error {
Stream: mqttQoS2PubRelStreamName,
Config: ConsumerConfig{
DeliverSubject: sess.pubRelDeliverySubject,
Durable: sess.idHash + "_pubrel",
Durable: mqttQoS2PubRelConsumerDurablePrefix + sess.idHash,
AckPolicy: AckExplicit,
DeliverPolicy: DeliverNew,
FilterSubject: sess.pubRelSubject,