diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2010-06-24 16:55:14 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2010-06-24 16:55:14 +0100 |
commit | 6ffed4950c8e99d33858b615dd4ea144fe6cdc61 (patch) | |
tree | 8f0dbdfcf7cf9874d9cafa850df62e66a7d5985c /src/rabbit_basic.erl | |
parent | c66e8d1f66a0bdbba4a5584d62cd98eb6837b642 (diff) | |
download | rabbitmq-server-6ffed4950c8e99d33858b615dd4ea144fe6cdc61.tar.gz |
Codegen up two different versions of rabbit_framing and provide a dispatcher to choose. The codegen now builds header files that are the union of 0-8 and 0-9-1.
Diffstat (limited to 'src/rabbit_basic.erl')
-rw-r--r-- | src/rabbit_basic.erl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rabbit_basic.erl b/src/rabbit_basic.erl index 4ab7a2a0..5e2d7d9a 100644 --- a/src/rabbit_basic.erl +++ b/src/rabbit_basic.erl @@ -80,7 +80,9 @@ delivery(Mandatory, Immediate, Txn, Message) -> sender = self(), message = Message}. build_content(Properties, BodyBin) -> - {ClassId, _MethodId} = rabbit_framing:method_id('basic.publish'), + %% TODO - is this ever used? If so remove hard coded amqp_0_9_1 + {ClassId, _MethodId} = + rabbit_framing:method_id('basic.publish', amqp_0_9_1), #content{class_id = ClassId, properties = Properties, properties_bin = none, @@ -91,7 +93,9 @@ from_content(Content) -> properties = Props, payload_fragments_rev = FragmentsRev} = rabbit_binary_parser:ensure_content_decoded(Content), - {ClassId, _MethodId} = rabbit_framing:method_id('basic.publish'), + %% TODO - is this ever used? If so remove hard coded amqp_0_9_1 + {ClassId, _MethodId} = + rabbit_framing:method_id('basic.publish', amqp_0_9_1), {Props, list_to_binary(lists:reverse(FragmentsRev))}. message(ExchangeName, RoutingKeyBin, RawProperties, BodyBin) -> |