Skip to content

Commit

Permalink
VIP - delete is_integer of timeout
Browse files Browse the repository at this point in the history
Based on :infinity | non_neg_integer()
  • Loading branch information
shahryarjb committed Jun 4, 2024
1 parent 271d4eb commit 5ffca07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modules/mnesia_assistant/operation/table.ex
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ defmodule MnesiaAssistant.Table do
MnesiaAssistant.Table.wait_for_tables(Person, 5000)
```
"""
def wait_for_tables(tables, timeout) when is_list(tables) and is_integer(timeout),
def wait_for_tables(tables, timeout) when is_list(tables),
do: Mnesia.wait_for_tables(tables, timeout)

def wait_for_tables(tables, timeout, identifier) when is_list(tables) and is_integer(timeout) do
def wait_for_tables(tables, timeout, identifier) when is_list(tables) do
case wait_for_tables(tables, timeout) do
:ok ->
Logger.info(
Expand Down

0 comments on commit 5ffca07

Please sign in to comment.