Skip to content

Commit a94b107

Browse files
author
ttt161
committed
fix dialyzer
1 parent f6f93d2 commit a94b107

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

apps/hellgate/src/hg_invoice_payment.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
-type session_change() :: hg_session:change().
206206
-type callback_response() :: dmsl_proxy_provider_thrift:'CallbackResponse'().
207207
-type make_recurrent() :: true | false.
208-
-type retry_strategy() :: hg_retry:strategy().
208+
209209
-type capture_data() :: dmsl_payproc_thrift:'InvoicePaymentCaptureData'().
210210
-type payment_session() :: dmsl_payproc_thrift:'InvoicePaymentSession'().
211211
-type failure() :: dmsl_domain_thrift:'OperationFailure'().
@@ -2574,7 +2574,6 @@ get_actual_retry_strategy(Target, #st{retry_attempts = Attempts}) ->
25742574
AttemptNum = maps:get(get_target_type(Target), Attempts, 0),
25752575
hg_retry:skip_steps(get_initial_retry_strategy(get_target_type(Target)), AttemptNum).
25762576

2577-
-spec get_initial_retry_strategy(session_target_type()) -> retry_strategy().
25782577
get_initial_retry_strategy(TargetType) ->
25792578
PolicyConfig = genlib_app:env(hellgate, payment_retry_policy, #{}),
25802579
hg_retry:new_strategy(maps:get(TargetType, PolicyConfig, no_retry)).

apps/hellgate/src/hg_retry.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ new_strategy({intervals, Array}) ->
3737
new_strategy({timecap, Timeout, Policy}) ->
3838
genlib_retry:timecap(Timeout, new_strategy(Policy));
3939
new_strategy(no_retry) ->
40-
finish;
40+
genlib_retry:timecap(0, genlib_retry:linear(1, 1));
4141
new_strategy(BadPolicy) ->
4242
erlang:error(badarg, [BadPolicy]).
4343

0 commit comments

Comments
 (0)