diff options
author | Erik Johnston <erik@matrix.org> | 2020-05-04 14:04:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 14:04:09 +0100 |
commit | 350421e0589606f422df22d9901330776fa5ed5f (patch) | |
tree | a66d335cb0b76af298b9c0e93d036f718b8c8bf5 /stubs | |
parent | Convert synapse.server_notices to async/await. (#7394) (diff) | |
download | synapse-350421e0589606f422df22d9901330776fa5ed5f.tar.xz |
Fix redis password support. (#7401)
We forgot to set the password on the subscriber connection, as well as not calling super methods for overridden connectionMade/connectionLost functions.
Diffstat (limited to 'stubs')
-rw-r--r-- | stubs/txredisapi.pyi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stubs/txredisapi.pyi b/stubs/txredisapi.pyi index 763d3fb404..cac689d4f3 100644 --- a/stubs/txredisapi.pyi +++ b/stubs/txredisapi.pyi @@ -22,7 +22,10 @@ class RedisProtocol: def publish(self, channel: str, message: bytes): ... class SubscriberProtocol: + password: Optional[str] def subscribe(self, channels: Union[str, List[str]]): ... + def connectionMade(self): ... + def connectionLost(self, reason): ... def lazyConnection( host: str = ..., |