File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -733,7 +733,7 @@ async def reset(self):
733733 async with self ._lock :
734734 if self .connection :
735735 await self .connection .disconnect ()
736- self .connection .deregister_connect_callback (self .on_connect )
736+ self .connection ._deregister_connect_callback (self .on_connect )
737737 await self .connection_pool .release (self .connection )
738738 self .connection = None
739739 self .channels = {}
@@ -794,7 +794,7 @@ async def connect(self):
794794 )
795795 # register a callback that re-subscribes to any channels we
796796 # were listening to when we were disconnected
797- self .connection .register_connect_callback (self .on_connect )
797+ self .connection ._register_connect_callback (self .on_connect )
798798 else :
799799 await self .connection .connect ()
800800 if self .push_handler_func is not None and not HIREDIS_AVAILABLE :
Original file line number Diff line number Diff line change @@ -216,12 +216,12 @@ def repr_pieces(self):
216216 def is_connected (self ):
217217 return self ._reader is not None and self ._writer is not None
218218
219- def register_connect_callback (self , callback ):
219+ def _register_connect_callback (self , callback ):
220220 wm = weakref .WeakMethod (callback )
221221 if wm not in self ._connect_callbacks :
222222 self ._connect_callbacks .append (wm )
223223
224- def deregister_connect_callback (self , callback ):
224+ def _deregister_connect_callback (self , callback ):
225225 try :
226226 self ._connect_callbacks .remove (weakref .WeakMethod (callback ))
227227 except ValueError :
You can’t perform that action at this time.
0 commit comments