Skip to content

Commit 051d28f

Browse files
committed
Use the rabbit_table facility to defer timeout to configuration value
1 parent 792965c commit 051d28f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rabbit_delayed_message.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ setup_mnesia() ->
9090
record_info(fields, delay_index)},
9191
{type, ordered_set},
9292
{disc_copies, [node()]}]),
93-
mnesia:wait_for_tables([?TABLE_NAME, ?INDEX_TABLE_NAME], 30000).
93+
rabbit_table:wait([?TABLE_NAME, ?INDEX_TABLE_NAME]).
9494

9595
disable_plugin() ->
9696
mnesia:delete_table(?INDEX_TABLE_NAME),

0 commit comments

Comments
 (0)