From 97e24e2854c18dadcc9c48955cead1d01c734622 Mon Sep 17 00:00:00 2001 From: Matthew Sackman Date: Tue, 3 Aug 2010 15:00:11 +0100 Subject: Correct specs of post functions from exchanges. none() is the empty set. No value belongs to the empty set. So clearly none() was wrong --- src/rabbit_exchange.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rabbit_exchange.erl b/src/rabbit_exchange.erl index 8e3d529a..af4eb1bd 100644 --- a/src/rabbit_exchange.erl +++ b/src/rabbit_exchange.erl @@ -109,9 +109,9 @@ -> [{name(), rabbit_amqqueue:name(), rabbit_router:routing_key(), rabbit_framing:amqp_table()}]). -spec(delete_queue_bindings/1 :: - (rabbit_amqqueue:name()) -> fun (() -> none())). + (rabbit_amqqueue:name()) -> fun (() -> any())). -spec(delete_transient_queue_bindings/1 :: - (rabbit_amqqueue:name()) -> fun (() -> none())). + (rabbit_amqqueue:name()) -> fun (() -> any())). -spec(delete/2 :: (name(), boolean())-> 'ok' | rabbit_types:error('not_found') | -- cgit v1.2.1