mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 08:46:04 -04:00
Fix some spelling mistakes / typos. (#7811)
This commit is contained in:
parent
53ee214f2f
commit
38e1fac886
31 changed files with 41 additions and 40 deletions
|
@ -92,11 +92,11 @@ class ReplicationEndpoint(object):
|
|||
# assert here that sub classes don't try and use the name.
|
||||
assert (
|
||||
"instance_name" not in self.PATH_ARGS
|
||||
), "`instance_name` is a reserved paramater name"
|
||||
), "`instance_name` is a reserved parameter name"
|
||||
assert (
|
||||
"instance_name"
|
||||
not in signature(self.__class__._serialize_payload).parameters
|
||||
), "`instance_name` is a reserved paramater name"
|
||||
), "`instance_name` is a reserved parameter name"
|
||||
|
||||
assert self.METHOD in ("PUT", "POST", "GET")
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ Structure of the module:
|
|||
* command.py - the definitions of all the valid commands
|
||||
* protocol.py - the TCP protocol classes
|
||||
* resource.py - handles streaming stream updates to replications
|
||||
* streams/ - the definitons of all the valid streams
|
||||
* streams/ - the definitions of all the valid streams
|
||||
|
||||
|
||||
The general interaction of the classes are:
|
||||
|
|
|
@ -47,7 +47,7 @@ class Command(metaclass=abc.ABCMeta):
|
|||
|
||||
@abc.abstractmethod
|
||||
def to_line(self) -> str:
|
||||
"""Serialises the comamnd for the wire. Does not include the command
|
||||
"""Serialises the command for the wire. Does not include the command
|
||||
prefix.
|
||||
"""
|
||||
|
||||
|
|
|
@ -317,7 +317,7 @@ class BaseReplicationStreamProtocol(LineOnlyReceiver):
|
|||
def _queue_command(self, cmd):
|
||||
"""Queue the command until the connection is ready to write to again.
|
||||
"""
|
||||
logger.debug("[%s] Queing as conn %r, cmd: %r", self.id(), self.state, cmd)
|
||||
logger.debug("[%s] Queueing as conn %r, cmd: %r", self.id(), self.state, cmd)
|
||||
self.pending_commands.append(cmd)
|
||||
|
||||
if len(self.pending_commands) > self.max_line_buffer:
|
||||
|
|
|
@ -177,7 +177,7 @@ class RedisDirectTcpReplicationClientFactory(txredisapi.SubscriberFactory):
|
|||
Args:
|
||||
hs
|
||||
outbound_redis_connection: A connection to redis that will be used to
|
||||
send outbound commands (this is seperate to the redis connection
|
||||
send outbound commands (this is separate to the redis connection
|
||||
used to subscribe).
|
||||
"""
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ class BaseEventsStreamRow(object):
|
|||
Specifies how to identify, serialize and deserialize the different types.
|
||||
"""
|
||||
|
||||
# Unique string that ids the type. Must be overriden in sub classes.
|
||||
# Unique string that ids the type. Must be overridden in sub classes.
|
||||
TypeId = None # type: str
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue