Merge pull request #3085 from luos/improve-federation-performance

Improve performance of federation

(cherry picked from commit 16455426f0)
This commit is contained in:
Michael Klishin 2021-06-04 15:43:25 +03:00 committed by Michael Klishin
parent 22b1cc8748
commit 06932b9fcb
No known key found for this signature in database
GPG Key ID: E80EDCFA0CDB21EE
1 changed files with 4 additions and 2 deletions

View File

@ -73,8 +73,10 @@ is_process_running(Node, Process) ->
-spec cluster_name() -> binary().
cluster_name() ->
rabbit_runtime_parameters:value_global(
cluster_name, cluster_name_default()).
case rabbit_runtime_parameters:value_global(cluster_name) of
not_found -> cluster_name_default();
Name -> Name
end.
cluster_name_default() ->
{ID, _} = parts(node()),