Disable retained MQTT messages in Rabbit MQ

守給你的承諾、 提交于 2019-12-11 16:15:42

问题


For legacy reasons, I need to disable retained messages on an MQTT node running RabbitMQ.

After researching the issue, it appears that the Rabbit MQ team has indeed added such a feature in a file called rabbit_mqtt_retained_msg_store_noop.erl.

I am otherwise unfamiliar with the codebase and could not find mention of the noop retainer anywhere in the documentation.

How do I enable rabbit_mqtt_retained_msg_store_noop?


回答1:


rabbit_mqtt_retained_msg_store_noop is enabled by adding thefollowing to configuration:

[
  {
    rabbitmq_mqtt, [
      {retained_message_store, rabbit_mqtt_retained_msg_store_noop}
    ]
  }
].


来源:https://stackoverflow.com/questions/46849924/disable-retained-mqtt-messages-in-rabbit-mq

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!