Parcourir la source

Merge pull request #5845 from tigercl/fix/http

fix(http): fix function clause when create http connector instance
tigercl il y a 4 ans
Parent
commit
c854a34b63
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      apps/emqx_connector/src/emqx_connector_http.erl

+ 3 - 1
apps/emqx_connector/src/emqx_connector_http.erl

@@ -221,7 +221,9 @@ preproc_channels(<<"bridge:", BridgeId/binary>>, Config) ->
     maps:fold(fun(ChannName, ChannConf, Acc) ->
             Acc#{emqx_bridge:channel_id(BridgeType, BridgeName, egress_channels, ChannName) =>
                  preproc_channel_conf(ChannConf)}
-        end, #{}, maps:get(egress_channels, Config, #{})).
+        end, #{}, maps:get(egress_channels, Config, #{}));
+preproc_channels(_InstId, _Config) ->
+    #{}.
 
 preproc_channel_conf(#{
         method := Method,