Skip to content

Commit

Permalink
Fix a pair of type specifications detected by Dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Feb 9, 2021
1 parent f52d319 commit a4369dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ets_cache.erl
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ do_setopts(State, Opts) ->
end,
NewState.

-spec calculate_time(binary(), integer()) -> integer().
-spec calculate_time(atom(), integer()) -> integer().
calculate_time(Name, Timeout) ->
Now = current_time(),
case ets_cache_options:life_time(Name) of
Expand Down Expand Up @@ -682,7 +682,7 @@ ets_delete_all_objects(Tab) ->
false
end.

-spec ets_select_delete(atom(), fun()) -> non_neg_integer().
-spec ets_select_delete(atom(), ets:match_spec()) -> non_neg_integer().
ets_select_delete(Tab, Fun) ->
try
incr_counter(Tab),
Expand Down

0 comments on commit a4369dc

Please sign in to comment.