Skip to content

Commit

Permalink
chore: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zmstone committed Oct 9, 2024
1 parent 9347ec1 commit a67da3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/wolff_pendack.erl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ drop1(#{backlog := Cbs0, count := Count} = X, [Id | Ids], Acc) ->
false ->
drop1(X, Ids, Acc);
{ok, Cb, Cbs} ->
drop1(X#{backlog => Cbs, count => Count - 1}, Ids, [Cb | Acc])
drop1(X#{backlog := Cbs, count := Count - 1}, Ids, [Cb | Acc])
end.

%% @doc Move a list of calls from the head of the backlog queue
Expand All @@ -150,5 +150,5 @@ move1(#{backlog := Backlog0, inflight := Inflight0} = X, Id) ->
X;
{ok, Cb, Backlog} ->
Inflight = insert_cb(Inflight0, Id, Cb),
X#{backlog => Backlog, inflight => Inflight}
X#{backlog := Backlog, inflight := Inflight}
end.
2 changes: 1 addition & 1 deletion test/wolff_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ replayq_overflow_while_inflight_test() ->
Pid = wolff_producers:lookup_producer(Producers, 0),
?assert(is_process_alive(Pid)),
TesterPid = self(),
ok = meck:new(kpro, [non_strict, no_history, no_link, passthrough]),
ok = meck:new(kpro, [no_history, no_link, passthrough]),
meck:expect(kpro, send,
fun(_Conn, Req) ->
Payload = iolist_to_binary(lists:last(tuple_to_list(Req))),
Expand Down

0 comments on commit a67da3b

Please sign in to comment.