Skip to content

Commit

Permalink
record_info/2 is appropriate here
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Aug 18, 2016
1 parent 769472f commit bbe671d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rabbit_connection_tracking.erl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ensure_tracked_connections_table_for_node(Node) ->
ensure_per_vhost_tracked_connections_table_for_node(Node) ->
TableName = tracked_connection_per_vhost_table_name_for(Node),
case mnesia:create_table(TableName, [{record_name, tracked_connection_per_vhost},
{attributes, [vhost, connection_count]}]) of
{attributes, record_info(fields, tracked_connection_per_vhost)}]) of
{atomic, ok} -> ok;
{aborted, _} -> ok
%% TODO: propagate errors
Expand Down

0 comments on commit bbe671d

Please sign in to comment.