Bläddra i källkod

refactor: rename temporary name

Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
Thales Macedo Garitezi 2 år sedan
förälder
incheckning
963d63b899
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      apps/emqx_bridge/src/emqx_bridge_resource.erl

+ 2 - 2
apps/emqx_bridge/src/emqx_bridge_resource.erl

@@ -265,8 +265,8 @@ create_dry_run(Type, Conf0) ->
     TypeBin = bin(Type),
     TypeAtom = safe_atom(Type),
     Conf1 = maps:without([<<"name">>], Conf0),
-    RawConf = #{<<"bridges">> => #{TypeBin => #{<<"a">> => Conf1}}},
-    #{bridges := #{TypeAtom := #{a := Conf}}} =
+    RawConf = #{<<"bridges">> => #{TypeBin => #{<<"temp_name">> => Conf1}}},
+    #{bridges := #{TypeAtom := #{temp_name := Conf}}} =
         hocon_tconf:check_plain(
             emqx_bridge_schema,
             RawConf,