Skip to content

Commit

Permalink
Merge pull request #76 from dw-kihara/fix/type_mismatch
Browse files Browse the repository at this point in the history
Fixed type mismatch in aws_credentials
  • Loading branch information
onno-vos-dev authored May 29, 2024
2 parents 2c9cea4 + 8cbbafd commit e4a797a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/aws_credentials.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
, make_map/5
]).

-record(state, { credentials = undefined :: map()
-record(state, { credentials = undefined :: credentials()
| undefined
| information_redacted
, tref = undefind :: reference()
| undefined
, tref = undefined :: reference()
| undefined
}).
-type state() :: #state{}.

Expand Down Expand Up @@ -199,8 +199,8 @@ fetch_credentials(Options) ->
undefined_or_fail(true) -> undefined;
undefined_or_fail(false) -> error(no_credentials).

-spec setup_update_callback('infinity' | binary() | integer()) -> reference().
setup_update_callback(infinity) -> ok;
-spec setup_update_callback('infinity' | binary() | integer()) -> reference() | undefined.
setup_update_callback(infinity) -> undefined;
setup_update_callback(Expires) when is_binary(Expires) ->
RefreshAfter = seconds_until_timestamp(Expires) - ?ALERT_BEFORE_EXPIRY,
setup_callback(RefreshAfter);
Expand Down

0 comments on commit e4a797a

Please sign in to comment.