diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2018-10-02 05:14:48 +0300 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2018-10-02 05:14:48 +0300 |
| commit | 25801d7d49c4253ced504baa6c3738cdaa2a2d35 (patch) | |
| tree | d33ad3d63222b7642049bc8026bbfb16f4258def | |
| parent | 8b37501451d2ef66dbf16b62b84684b74157dcbc (diff) | |
| download | rabbitmq-server-git-25801d7d49c4253ced504baa6c3738cdaa2a2d35.tar.gz | |
Naming; use erlang:min/2 instead of lists:min/1
| -rw-r--r-- | src/rabbit_channel.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index a9ead06462..a68bd8896a 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -1975,12 +1975,12 @@ send_confirms(Cs, Rs, State) -> coalesce_and_send(MsgSeqNos, NegativeMsgSeqNos, MkMsgFun, State = #ch{unconfirmed = UC}) -> SMsgSeqNos = lists:usort(MsgSeqNos), - UnconfirmedCutOff = case dtree:is_empty(UC) of + UnconfirmedCutoff = case dtree:is_empty(UC) of true -> lists:last(SMsgSeqNos) + 1; false -> {SeqNo, _XName} = dtree:smallest(UC), SeqNo end, - CutOff = lists:min([UnconfirmedCutOff | NegativeMsgSeqNos]), - {Ms, Ss} = lists:splitwith(fun(X) -> X < CutOff end, SMsgSeqNos), + Cutoff = erlang:min(UnconfirmedCutoff, NegativeMsgSeqNos), + {Ms, Ss} = lists:splitwith(fun(X) -> X < Cutoff end, SMsgSeqNos), case Ms of [] -> ok; _ -> ok = send(MkMsgFun(lists:last(Ms), true), State) |
