Commits

Jacob Perkins committed e465220

cleanup

  • Participants
  • Parent commits 4229cb8

Comments (0)

Files changed (1)

File src/erldis_client.erl

 %% handle_call %%
 %%%%%%%%%%%%%%%%%
 
-handle_call(is_pipelined, _From, #redis{pipeline=P}=State)->
-  {reply, P, State};
+handle_call(is_pipelined, _From, State)->
+  {reply, State#redis.pipeline, State};
 handle_call(get_all_results, From, #redis{pipeline=true, calls=Calls} = State) ->
 	case queue:len(Calls) of
 		0 ->
 			{noreply, NewState}
 	end;
 handle_info({tcp_closed, Socket}, State=#redis{socket=Socket}) ->
-	error_logger:warning_report([{erldis_client, tcp_closed}, State]),
 	{noreply, State#redis{socket=undefined}};
 handle_info(_Info, State) ->
 	{noreply, State}.