diff --git a/apps/emqx_auth_http/src/emqx_auth_http_app.erl b/apps/emqx_auth_http/src/emqx_auth_http_app.erl index 8e84f314f..ba88ca3be 100644 --- a/apps/emqx_auth_http/src/emqx_auth_http_app.erl +++ b/apps/emqx_auth_http/src/emqx_auth_http_app.erl @@ -55,7 +55,7 @@ translate_env(EnvName) -> URL = proplists:get_value(url, Req), #{host := Host0, path := Path0, - scheme := Scheme} = URIMap = uri_string:parse(add_default_scheme(uri_string:normalize(URL))), + scheme := Scheme} = URIMap = uri_string:parse(add_default_scheme(uri_string:normalize(URL))), Port = maps:get(port, URIMap, case Scheme of "https" -> 443; "http" -> 80 diff --git a/apps/emqx_bridge_mqtt/etc/emqx_bridge_mqtt.conf b/apps/emqx_bridge_mqtt/etc/emqx_bridge_mqtt.conf index 023f986fc..28d532adf 100644 --- a/apps/emqx_bridge_mqtt/etc/emqx_bridge_mqtt.conf +++ b/apps/emqx_bridge_mqtt/etc/emqx_bridge_mqtt.conf @@ -152,7 +152,7 @@ bridge.mqtt.aws.batch_size = 32 ## 0 means infinity (no limit on the inflight window) ## ## Value: Integer -bridge.mqtt.aws.max_inflight = 32 +bridge.mqtt.aws.max_inflight_size = 32 ## Base directory for replayq to store messages on disk ## If this config entry is missing or set to undefined, diff --git a/apps/emqx_bridge_mqtt/priv/emqx_bridge_mqtt.schema b/apps/emqx_bridge_mqtt/priv/emqx_bridge_mqtt.schema index 72c0ff98e..301737afd 100644 --- a/apps/emqx_bridge_mqtt/priv/emqx_bridge_mqtt.schema +++ b/apps/emqx_bridge_mqtt/priv/emqx_bridge_mqtt.schema @@ -103,7 +103,7 @@ {datatype, {duration, s}} ]}. -{mapping, "bridge.mqtt.$name.max_inflight", "emqx_bridge_mqtt.bridges", [ +{mapping, "bridge.mqtt.$name.max_inflight_size", "emqx_bridge_mqtt.bridges", [ {default, 0}, {datatype, integer} ]}. @@ -222,6 +222,8 @@ mqttv5 -> v5; _ -> v4 end}; + Tr(max_inflight_size, Size, Cfg) -> + Cfg#{max_inflight => Size}; Tr(Key, Value, Cfg) -> Cfg#{Key => Value} end, diff --git a/apps/emqx_bridge_mqtt/src/emqx_bridge_worker.erl b/apps/emqx_bridge_mqtt/src/emqx_bridge_worker.erl index 5e1374eca..95b3aa861 100644 --- a/apps/emqx_bridge_mqtt/src/emqx_bridge_worker.erl +++ b/apps/emqx_bridge_mqtt/src/emqx_bridge_worker.erl @@ -132,8 +132,8 @@ %% and work as message batch transport layer %% reconnect_delay_ms: Delay in milli-seconds for the bridge worker to retry %% in case of transportation failure. -%% max_inflight_batches: Max number of batches allowed to send-ahead before -%% receiving confirmation from remote node/cluster +%% max_inflight: Max number of batches allowed to send-ahead before receiving +%% confirmation from remote node/cluster %% mountpoint: The topic mount point for messages sent to remote node/cluster %% `undefined', `<<>>' or `""' to disable %% forwards: Local topics to subscribe.