[rabbitmq-discuss] rabbit_binary_parser:ensure_content_decoded/2 - why /2 rather than /1?

Matthias Radestock matthias at rabbitmq.com
Sat Aug 7 20:01:38 BST 2010


Tony,

Tony Garnock-Jones wrote:
> In rabbit_binary_parser.erl, what used to be ensure_content_decoded/1 is now
> endure_content_decoded/2 [...]
> 
> Shouldn't it be /1 as before, and decide which protocol to use based on
> Content#content.protocol?

Probably. The /2 was introduced before #content.protocol existed and 
iirc we kept it for symmetry w ensure_content_encoded/2. I have filed a 
bug to look into this.


Regards,

Matthias.


More information about the rabbitmq-discuss mailing list