Update handle_command docstring

pull/7187/head
Erik Johnston 2020-04-06 14:48:10 +01:00
parent 9cc569857d
commit 3653d0308c
1 changed files with 4 additions and 1 deletions

View File

@ -242,7 +242,10 @@ class BaseReplicationStreamProtocol(LineOnlyReceiver):
async def handle_command(self, cmd: Command):
"""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:
cmd: received command