diff options
| author | Tim Watson <watson.timothy@gmail.com> | 2014-01-16 13:26:04 +0000 |
|---|---|---|
| committer | Tim Watson <watson.timothy@gmail.com> | 2014-01-16 13:26:04 +0000 |
| commit | 8145e83a43c3bcc558e2fa0ab279cfe8ad4ab2ee (patch) | |
| tree | af4037829f223ae289ac7917fcda9ab82203031e | |
| parent | c1f8c5ad83199682c0c68fae6dbde1d8addd4175 (diff) | |
| download | rabbitmq-server-git-8145e83a43c3bcc558e2fa0ab279cfe8ad4ab2ee.tar.gz | |
Fix type spec and modify backing_queue_qc to call init correctly
| -rw-r--r-- | src/rabbit_backing_queue_qc.erl | 2 | ||||
| -rw-r--r-- | src/rabbit_queue_index.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_backing_queue_qc.erl b/src/rabbit_backing_queue_qc.erl index ddd9a6f237..b054591519 100644 --- a/src/rabbit_backing_queue_qc.erl +++ b/src/rabbit_backing_queue_qc.erl @@ -373,7 +373,7 @@ qc_default_exchange() -> qc_variable_queue_init(Q) -> {call, ?BQMOD, init, - [Q, {false, []}, function(2, ok)]}. + [Q, new, function(2, {ok, []})]}. qc_test_q() -> {call, rabbit_misc, r, [<<"/">>, queue, noshrink(binary(16))]}. diff --git a/src/rabbit_queue_index.erl b/src/rabbit_queue_index.erl index e2d3c40dc6..31ddecb8ef 100644 --- a/src/rabbit_queue_index.erl +++ b/src/rabbit_queue_index.erl @@ -194,7 +194,7 @@ -type(contains_predicate() :: fun ((rabbit_types:msg_id()) -> boolean())). -type(walker(A) :: fun ((A) -> 'finished' | {rabbit_types:msg_id(), non_neg_integer(), A})). --type(shutdown_terms() :: [any()] | 'non_clean_shutdown'). +-type(shutdown_terms() :: [term()] | 'non_clean_shutdown'). -spec(init/2 :: (rabbit_amqqueue:name(), on_sync_fun()) -> qistate()). -spec(recover/5 :: (rabbit_amqqueue:name(), shutdown_terms(), boolean(), |
