Permalink
Browse files

Upgraded rebar. Updated reference to rabbit_common-3.0.0. Tweaked reb…

…ar.config to tighten the compile options. Tweaked the code to eliminate a warning.
  • Loading branch information...
1 parent cd82904 commit 8bff75efaa1a2656a1c24844c196a7c67455bd58 @jbrisbin committed Nov 29, 2012
Showing with 19 additions and 7 deletions.
  1. BIN rebar
  2. +16 −2 rebar.config
  3. +3 −5 src/rabbit_exchange_type_riak.erl
View
BIN rebar
Binary file not shown.
View
@@ -1,6 +1,20 @@
{
deps, [
- {rabbit_common, ".*", {git, "https://github.com/bkearns/rabbit_common.git", {tag, "master"}}},
+ {rabbit_common, ".*", {git, "https://github.com/jbrisbin/rabbit_common.git", {tag, "rabbitmq-3.0.0"}}},
{riakc, ".*", {git, "https://github.com/basho/riak-erlang-client.git", {tag, "1.3.1"}}}
]
-}.
+}.
+
+{erl_opts, [
+ debug_info,
+ compressed,
+ report,
+ warn_export_all,
+ warn_export_vars,
+ warn_shadow_vars,
+ warn_unused_function,
+ warn_deprecated_function,
+ warn_obsolete_guard,
+ warn_unused_import
+% warnings_as_errors
+]}.
@@ -88,11 +88,9 @@ route(X=#exchange{name = #resource{virtual_host = _VirtualHost, name = Name}},
payload_fragments_rev = PayloadRev
} = rabbit_binary_parser:ensure_content_decoded(Content0),
- case CT of
- undefined ->
- ContentType = <<"application/octet-stream">>;
- _ ->
- ContentType = CT
+ ContentType = case CT of
+ undefined -> <<"application/octet-stream">>;
+ _ -> CT
end,
case get_riak_client(X) of

0 comments on commit 8bff75e

Please sign in to comment.