@@ -176,7 +176,7 @@ defmodule NSQ.Consumer do
176176
177177 cons_state = % { cons_state | max_in_flight: cons_state . config . max_in_flight }
178178
179- { :ok , _cons_state } = Connections . discover_nsqds_and_connect ( self , cons_state )
179+ { :ok , _cons_state } = Connections . discover_nsqds_and_connect ( self ( ) , cons_state )
180180 end
181181
182182
@@ -187,7 +187,7 @@ defmodule NSQ.Consumer do
187187 @ spec handle_call ( :redistribute_rdy , { reference , pid } , cons_state ) ::
188188 { :reply , :ok , cons_state }
189189 def handle_call ( :redistribute_rdy , _from , cons_state ) do
190- { :reply , :ok , RDY . redistribute! ( self , cons_state ) }
190+ { :reply , :ok , RDY . redistribute! ( self ( ) , cons_state ) }
191191 end
192192
193193
@@ -218,14 +218,14 @@ defmodule NSQ.Consumer do
218218 @ spec handle_call ( { :start_stop_continue_backoff , atom } , { reference , pid } , cons_state ) ::
219219 { :reply , :ok , cons_state }
220220 def handle_call ( { :start_stop_continue_backoff , backoff_flag } , _from , cons_state ) do
221- { :reply , :ok , Backoff . start_stop_continue! ( self , backoff_flag , cons_state ) }
221+ { :reply , :ok , Backoff . start_stop_continue! ( self ( ) , backoff_flag , cons_state ) }
222222 end
223223
224224
225225 @ spec handle_call ( { :update_rdy , connection , integer } , { reference , pid } , cons_state ) ::
226226 { :reply , :ok , cons_state }
227227 def handle_call ( { :update_rdy , conn , count } , _from , cons_state ) do
228- { :reply , :ok , RDY . update! ( self , conn , count , cons_state ) }
228+ { :reply , :ok , RDY . update! ( self ( ) , conn , count , cons_state ) }
229229 end
230230
231231
@@ -290,7 +290,7 @@ defmodule NSQ.Consumer do
290290 """
291291 @ spec handle_cast ( :resume , cons_state ) :: { :noreply , cons_state }
292292 def handle_cast ( :resume , state ) do
293- { :noreply , Backoff . resume! ( self , state ) }
293+ { :noreply , Backoff . resume! ( self ( ) , state ) }
294294 end
295295
296296
@@ -301,8 +301,8 @@ defmodule NSQ.Consumer do
301301 @ spec handle_cast ( { :maybe_update_rdy , host_with_port } , cons_state ) ::
302302 { :noreply , cons_state }
303303 def handle_cast ( { :maybe_update_rdy , { _host , _port } = nsqd } , cons_state ) do
304- conn = conn_from_nsqd ( self , nsqd , cons_state )
305- { :noreply , RDY . maybe_update! ( self , conn , cons_state ) }
304+ conn = conn_from_nsqd ( self ( ) , nsqd , cons_state )
305+ { :noreply , RDY . maybe_update! ( self ( ) , conn , cons_state ) }
306306 end
307307
308308
0 commit comments