Skip to content

Commit

Permalink
fix some of the dialyzer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sedinin committed Jul 29, 2024
1 parent 23a0e47 commit e5284e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apns_connection.erl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
, stream := gun:stream_ref()
, timer := reference()
, status := non_neg_integer()
, headers := gun:headers()
, headers := gun:req_headers()
, body := binary()
}.

Expand Down Expand Up @@ -635,7 +635,7 @@ get_headers(Headers) ->
get_device_path(DeviceId) ->
<<"/3/device/", DeviceId/binary>>.

-spec add_authorization_header(apns:headers(), apnd:token()) -> apns:headers().
-spec add_authorization_header(apns:headers(), apns:token()) -> apns:headers().
add_authorization_header(Headers, Token) ->
Headers#{apns_auth_token => <<"bearer ", Token/binary>>}.

Expand All @@ -659,7 +659,7 @@ backoff(N, Ceiling) ->
%%%===================================================================
%%% spawn/3 functions
%%%===================================================================
-spec reply_errors_and_cancel_timers([stream_data()], term()) -> ok.
-spec reply_errors_and_cancel_timers(map(), term()) -> ok.
reply_errors_and_cancel_timers(Streams, Reason) ->
[reply_error_and_cancel_timer(From, Reason, Tmr) ||
#{from := From, timer := Tmr} <- maps:values(Streams)],
Expand Down

0 comments on commit e5284e2

Please sign in to comment.