[rabbitmq-discuss] rabbit_binary_parser:ensure_content_decoded/2 - why /2 rather than /1?
Tony Garnock-Jones
tonyg at rabbitmq.com
Sat Aug 7 21:19:19 BST 2010
Matthias Radestock wrote:
> 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.
Hmm. Looks like ensure_content_encoded could also be /1 along similar lines.
Also it doesn't seem to be called anywhere! (And also it's a bit weird. The
pattern-matching in the heads doesn't look exhaustive.)
Tony
More information about the rabbitmq-discuss
mailing list