summaryrefslogtreecommitdiff
path: root/src/lqueue.erl
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-10-12 14:40:12 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2011-10-12 14:40:12 +0100
commit3b6108f1fe79cdcbf7dcbb0dc91d0da60045c425 (patch)
treea609a666504575cabe611840b7f42582bff3291b /src/lqueue.erl
parentfae4da6b71bfb923cc44b7e506edad1e55b5ef75 (diff)
downloadrabbitmq-server-git-3b6108f1fe79cdcbf7dcbb0dc91d0da60045c425.tar.gz
cosmetic, and be somewhat smarter about deciding the minimum length of q3 (now must end on a segment boundary - minor optimisation)
Diffstat (limited to 'src/lqueue.erl')
-rw-r--r--src/lqueue.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lqueue.erl b/src/lqueue.erl
index 80fb1fd9da..9f58b25017 100644
--- a/src/lqueue.erl
+++ b/src/lqueue.erl
@@ -119,10 +119,10 @@ foldr(Fun, Init, Q) ->
len({L, _Q, _I, _O}) ->
L.
-peek({0, _, _, _}) -> empty;
-peek({1, _, V, empty}) -> V;
-peek({_L, _Q, _I, O}) -> O.
+peek({0, _, _, _}) -> empty;
+peek({1, _, V, empty}) -> V;
+peek({_L, _Q, _I, O}) -> O.
-peek_r({0, _, _, _}) -> empty;
+peek_r({0, _, _, _}) -> empty;
peek_r({1, _, empty, V}) -> V;
-peek_r({_L, _Q, I, _O}) -> I.
+peek_r({_L, _Q, I, _O}) -> I.