Skip to content

Commit

Permalink
Rename queue type to queue:queue()
Browse files Browse the repository at this point in the history
Fixes compilation on 17.0+ because the project has warnings as error and that type is deprecated.
  • Loading branch information
essen committed Jan 16, 2015
1 parent 7b7153e commit bd9048e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apns_queue.erl
Expand Up @@ -29,7 +29,7 @@
code_change/3]).

-record(state, {
queue = queue:new() :: queue(),
queue = queue:new() :: queue:queue(),
max_entries = ?DEFAULT_MAX_ENTRIES :: pos_integer()
}).

Expand Down Expand Up @@ -108,7 +108,7 @@ code_change(_OldVsn, State, _Extra) ->
%% Server implementation, a.k.a.: callbacks
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

-spec recover_fail(ID::binary(), Queue::queue()) -> {apns:msg(), [apns:msg()]}.
-spec recover_fail(ID::binary(), Queue::queue:queue()) -> {apns:msg(), [apns:msg()]}.
%@hidden
recover_fail(ID, Queue) ->
Now = apns:expiry(0),
Expand Down

0 comments on commit bd9048e

Please sign in to comment.