This commit is contained in:
Boris 2021-07-19 17:44:09 +03:00 committed by GitHub
parent 886acc0503
commit c7e96068a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ get_limit(LimitID, Config, LimitContext) ->
LimitRangeID = construct_range_id(LimitID, Timestamp, Config, LimitContext),
LimitRange = unwrap(limit, lim_range_machine:get(LimitRangeID, LimitContext)),
TimeRange = lim_config_machine:calculate_time_range(Timestamp, Config),
#{own_amount := Amount} =
#{max_available_amount := Amount} =
unwrap(lim_range_machine:get_range_balance(TimeRange, LimitRange, LimitContext)),
#limiter_Limit{
id = LimitRangeID,