Przeglądaj źródła

refactor(schema): Refactor cluster_static seeds type

k32 4 lat temu
rodzic
commit
987945def3
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      apps/emqx_conf/src/emqx_conf_schema.erl

+ 2 - 2
apps/emqx_conf/src/emqx_conf_schema.erl

@@ -147,7 +147,7 @@ fields("cluster") ->
 
 fields(cluster_static) ->
     [ {"seeds",
-      sc(hoconsc:array(string()),
+      sc(hoconsc:array(atom()),
          #{ default => []
           })}
     ];
@@ -850,7 +850,7 @@ map(Name, Type) -> hoconsc:map(Name, Type).
 ref(Field) -> hoconsc:ref(?MODULE, Field).
 
 options(static, Conf) ->
-    [{seeds, [to_atom(S) || S <- conf_get("cluster.static.seeds", Conf, [])]}];
+    [{seeds, conf_get("cluster.static.seeds", Conf, [])}];
 options(mcast, Conf) ->
     {ok, Addr} = inet:parse_address(conf_get("cluster.mcast.addr", Conf)),
     {ok, Iface} = inet:parse_address(conf_get("cluster.mcast.iface", Conf)),