diff --git a/apps/emqx_management/src/emqx_mgmt_cluster.erl b/apps/emqx_management/src/emqx_mgmt_cluster.erl index 9538ba17e..423442569 100644 --- a/apps/emqx_management/src/emqx_mgmt_cluster.erl +++ b/apps/emqx_management/src/emqx_mgmt_cluster.erl @@ -196,4 +196,4 @@ is_succeed_result(Result) -> end. format_error_reason(Term) -> - iolist_to_binary(io_lib:format("~p", [Msg])). + iolist_to_binary(io_lib:format("~p", [Term])). diff --git a/changes/ce/feat-12267.en.md b/changes/ce/feat-12267.en.md index 70d3aec22..fbc88847c 100644 --- a/changes/ce/feat-12267.en.md +++ b/changes/ce/feat-12267.en.md @@ -1,2 +1,4 @@ Add a new `timeout` parameter to the `cluster/:node/invite` interface. Previously the default timeout was 5s which would often be caused by HTTP API calls due to emqx taking too long to join cluster. + +Add a new endpoint `/cluster/:node/invite_async` to support an asynchronous way to invite nodes to join the cluster.