Skip to content

Commit

Permalink
Merge #102: Fix typos
Browse files Browse the repository at this point in the history
3bf806e fix typo in backup.py (cristiantroy)
26a6c29 fix typo in calendar.py (cristiantroy)

Pull request description:

  fix typo in calendar.py
  fix typo in backup.py

Top commit has no ACKs.

Tree-SHA512: a73564ca6cc6c38e3fcc0458ac3307232fb440881e3f400f34ffc5e69c187cb01c29727052277d48166779823d48b19a71b149e50f72b59f39b57eb4da228e1a
  • Loading branch information
petertodd committed Jan 11, 2024
2 parents 4d0bc1e + 3bf806e commit 983aa18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion otsserver/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def write_disk_cache(self, chunk, bytes):
temp_file.close()
os.rename(temp_file.name, cache_file) # rename is atomic

# The following is a shrinked version of the standard calendar http server, it only support the '/timestamp' endpoint
# The following is a shrunk version of the standard calendar http server, it only support the '/timestamp' endpoint
# This way the backup server could serve request in place of the calendar serve which is backupping
class RPCRequestHandler(http.server.BaseHTTPRequestHandler):

Expand Down
6 changes: 3 additions & 3 deletions otsserver/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(self, path):
def submit(self, commitment):
"""Add a new commitment to the journal
Returns only after the commitment is syncronized to disk.
Returns only after the commitment is synchronized to disk.
"""
# Pad with null HMAC if necessary
if len(commitment) == self.COMMITMENT_SIZE - HMAC_SIZE:
Expand Down Expand Up @@ -279,7 +279,7 @@ def __loop(self):

self.calendar.submit(digests_commitment)

# Notify all requestors that the commitment is done
# Notify all requesters that the commitment is done
for done_event in done_events:
done_event.set()

Expand All @@ -299,7 +299,7 @@ def submit(self, msg):
"""
timestamp = Timestamp(msg)

# Add nonce to ensure requestor doesn't learn anything about other
# Add nonce to ensure requester doesn't learn anything about other
# messages being committed at the same time, as well as to ensure that
# anything we store related to this commitment can't be controlled by
# them.
Expand Down

0 comments on commit 983aa18

Please sign in to comment.