summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Harrop <rharrop@vmware.com>2010-09-27 14:46:48 +0100
committerRob Harrop <rharrop@vmware.com>2010-09-27 14:46:48 +0100
commit6b640144895f964e81bdd8d6a234fc3cfb17cf7c (patch)
tree5f7178cb2e5fac04c9da319960eb3aec1f70905a
parent2fa9b2c4bee835c7f3105d2b2685486fb143fd4e (diff)
downloadrabbitmq-server-6b640144895f964e81bdd8d6a234fc3cfb17cf7c.tar.gz
minor stylistic improvement
-rw-r--r--src/rabbit_amqqueue_process.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index b6578b7e..08ce0ed6 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -150,7 +150,8 @@ code_change(_OldVsn, State, _Extra) ->
%%----------------------------------------------------------------------------
init_queue_state(State) ->
- init_expires(init_ttl(State)).
+ lists:foldr(fun(F, S) -> F(S) end, State,
+ [fun init_expires/1, fun init_ttl/1]).
init_expires(State = #q{q = #amqqueue{arguments = Arguments}}) ->
case rabbit_misc:table_lookup(Arguments, <<"x-expires">>) of