Skip to content

Commit

Permalink
Upgrade erlang version
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Jun 6, 2024
1 parent 1aec5fe commit 3dc12c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
name: ${{ matrix.test-type }} test on OTP ${{matrix.otp_vsn}}
strategy:
matrix:
otp_vsn: ['26.2', '25.3', '24.3']
rebar_vsn: ['3.22.0']
otp_vsn: ['27', '26', '25']
rebar_vsn: ['3.23.0']
test-type: ['regular', 'integration']
runs-on: 'ubuntu-22.04'
runs-on: 'ubuntu-24.04'
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
Expand Down
5 changes: 3 additions & 2 deletions src/throttle/amoc_throttle_process.erl
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,12 @@ handle_continue(maybe_run_fn, State) ->
{noreply, NewState, timeout(NewState)}.

-spec format_status(gen_server:format_status()) -> term().
format_status(#{state := State}) ->
format_status(FormatStatus = #{state := State}) ->
ScheduleLen = length(State#state.schedule),
ScheduleRevLen = length(State#state.schedule_reversed),
State1 = setelement(#state.schedule, State, ScheduleLen),
setelement(#state.schedule_reversed, State1, ScheduleRevLen).
State2 = setelement(#state.schedule_reversed, State1, ScheduleRevLen),
FormatStatus#{state := State2}.

%%------------------------------------------------------------------------------
%% internal functions
Expand Down

0 comments on commit 3dc12c1

Please sign in to comment.