Skip to content

Commit

Permalink
Use the rabbit_table facility to defer timeout to configuration value
Browse files Browse the repository at this point in the history
  • Loading branch information
mwfriedm committed Jun 3, 2021
1 parent 792965c commit 051d28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rabbit_delayed_message.erl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ setup_mnesia() ->
record_info(fields, delay_index)},
{type, ordered_set},
{disc_copies, [node()]}]),
mnesia:wait_for_tables([?TABLE_NAME, ?INDEX_TABLE_NAME], 30000).
rabbit_table:wait([?TABLE_NAME, ?INDEX_TABLE_NAME]).

disable_plugin() ->
mnesia:delete_table(?INDEX_TABLE_NAME),
Expand Down

0 comments on commit 051d28f

Please sign in to comment.