Update handle_command docstring
parent
9cc569857d
commit
3653d0308c
|
|
@ -242,7 +242,10 @@ class BaseReplicationStreamProtocol(LineOnlyReceiver):
|
||||||
async def handle_command(self, cmd: Command):
|
async def handle_command(self, cmd: Command):
|
||||||
"""Handle a command we have received over the replication stream.
|
"""Handle a command we have received over the replication stream.
|
||||||
|
|
||||||
By default delegates to on_<COMMAND>, which should return an awaitable.
|
First calls `self.on_<COMMAND>` if it exists, then calls
|
||||||
|
`self.command_handler.on_<COMMAND>` if it exists. This allows for
|
||||||
|
protocol level handling of commands (e.g. PINGs), before delegating to
|
||||||
|
the handler.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
cmd: received command
|
cmd: received command
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue