Skip to content

Commit 3f7670d

Browse files
kjnilssonmergify[bot]
authored andcommitted
QQ: fix the key_metrics_rpc function.
Currently this function always falls back to the compatibility code and never gets the benefit of using ra:key_metrics/1 due to incorrect use of the map update operatior ":=" instead of the insert operator "=>". (cherry picked from commit 3b1ef8f)
1 parent 70ab0de commit 3f7670d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/rabbit_quorum_queue.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ cluster_state(Name) ->
11601160

11611161
key_metrics_rpc(ServerId) ->
11621162
Metrics = ra:key_metrics(ServerId),
1163-
Metrics#{machine_version := rabbit_fifo:version()}.
1163+
Metrics#{machine_version => rabbit_fifo:version()}.
11641164

11651165
-spec status(rabbit_types:vhost(), Name :: rabbit_misc:resource_name()) ->
11661166
[[{binary(), term()}]] | {error, term()}.

0 commit comments

Comments
 (0)