diff options
author | Patrick Cloke <patrickc@matrix.org> | 2021-02-12 11:01:48 -0500 |
---|---|---|
committer | Patrick Cloke <patrickc@matrix.org> | 2021-02-12 11:14:12 -0500 |
commit | 7950aa8a27c3f45184c96fda210c62d068dd2591 (patch) | |
tree | bdbb8b61fa05020fdf800818066a8dc1a230da8b /synapse/storage/util | |
parent | Merge tag 'v1.27.0rc2' into develop (diff) | |
download | synapse-7950aa8a27c3f45184c96fda210c62d068dd2591.tar.xz |
Fix some typos.
Diffstat (limited to 'synapse/storage/util')
-rw-r--r-- | synapse/storage/util/id_generators.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/util/id_generators.py b/synapse/storage/util/id_generators.py index 71ef5a72dc..9dd537bf66 100644 --- a/synapse/storage/util/id_generators.py +++ b/synapse/storage/util/id_generators.py @@ -245,7 +245,7 @@ class MultiWriterIdGenerator: # and b) noting that if we have seen a run of persisted positions # without gaps (e.g. 5, 6, 7) then we can skip forward (e.g. to 7). # - # Note: There is no guarentee that the IDs generated by the sequence + # Note: There is no guarantee that the IDs generated by the sequence # will be gapless; gaps can form when e.g. a transaction was rolled # back. This means that sometimes we won't be able to skip forward the # position even though everything has been persisted. However, since @@ -418,7 +418,7 @@ class MultiWriterIdGenerator: # bother, as nothing will read it). # # We only do this on the success path so that the persisted current - # position points to a persited row with the correct instance name. + # position points to a persisted row with the correct instance name. if self._writers: txn.call_after( run_as_background_process, @@ -509,7 +509,7 @@ class MultiWriterIdGenerator: } def advance(self, instance_name: str, new_id: int): - """Advance the postion of the named writer to the given ID, if greater + """Advance the position of the named writer to the given ID, if greater than existing entry. """ |