File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 , make_map /5
3636 ]).
3737
38- -record (state , { credentials = undefined :: map ()
38+ -record (state , { credentials = undefined :: credentials ()
3939 | undefined
4040 | information_redacted
41- , tref = undefind :: reference ()
42- | undefined
41+ , tref = undefined :: reference ()
42+ | undefined
4343 }).
4444-type state () :: # state {}.
4545
@@ -199,8 +199,8 @@ fetch_credentials(Options) ->
199199undefined_or_fail (true ) -> undefined ;
200200undefined_or_fail (false ) -> error (no_credentials ).
201201
202- -spec setup_update_callback ('infinity' | binary () | integer ()) -> reference ().
203- setup_update_callback (infinity ) -> ok ;
202+ -spec setup_update_callback ('infinity' | binary () | integer ()) -> reference () | undefined .
203+ setup_update_callback (infinity ) -> undefined ;
204204setup_update_callback (Expires ) when is_binary (Expires ) ->
205205 RefreshAfter = seconds_until_timestamp (Expires ) - ? ALERT_BEFORE_EXPIRY ,
206206 setup_callback (RefreshAfter );
You can’t perform that action at this time.
0 commit comments