From b9437fddef26aceb33e69fded310528d98f49bd3 Mon Sep 17 00:00:00 2001 From: Christopher Meiklejohn Date: Mon, 3 Mar 2014 16:51:54 -0800 Subject: [PATCH] Ignore return value of the setopts call. Resolves: riak_core_connection.erl:144: Expression produces a value of type 'ok' | {'error',atom()}, but this value is unmatched --- src/riak_core_connection.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/riak_core_connection.erl b/src/riak_core_connection.erl index fd9aeeff..2002ff76 100644 --- a/src/riak_core_connection.erl +++ b/src/riak_core_connection.erl @@ -141,7 +141,7 @@ sync_connect_status(_Parent, {IP,Port}, {ClientProtocol, {Options, Module, Args} case gen_tcp:connect(IP, Port, ?CONNECT_OPTIONS, Timeout) of {ok, Socket} -> lager:debug("Setting system options on client side: ~p", [?CONNECT_OPTIONS]), - Transport:setopts(Socket, ?CONNECT_OPTIONS), + _ = Transport:setopts(Socket, ?CONNECT_OPTIONS), SSLEnabled = app_helper:get_env(riak_core, ssl_enabled, false), %% handshake to make sure it's a riak sub-protocol dispatcher MyName = symbolic_clustername(),