rabbit_mqtt_util: Export used functions only

I.e. do not use export_all, which is reported as a warning with Erlang
20.
This commit is contained in:
Jean-Sébastien Pédron 2017-07-03 12:28:53 +02:00
parent 81a1df347c
commit 961f4a1e77
1 changed files with 10 additions and 1 deletions

View File

@ -18,7 +18,16 @@
-include("rabbit_mqtt.hrl").
-compile(export_all).
-export([subcription_queue_name/1,
mqtt2amqp/1,
amqp2mqtt/1,
gen_client_id/0,
env/1,
table_lookup/2,
path_for/2,
path_for/3,
vhost_name_to_table_name/1
]).
subcription_queue_name(ClientId) ->
Base = "mqtt-subscription-" ++ ClientId ++ "qos",