Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 8bff75efaa1a2656a1c24844c196a7c67455bd58 1 parent cd82904
@jbrisbin authored
View
BIN  rebar
Binary file not shown
View
18 rebar.config
@@ -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
+]}.
View
8 src/rabbit_exchange_type_riak.erl
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.