Fix some typos.

This commit is contained in:
Patrick Cloke 2021-02-12 11:01:48 -05:00
parent 2c9b4a5f16
commit 7950aa8a27
23 changed files with 34 additions and 34 deletions

View file

@ -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.
"""