Skip to content

Commit

Permalink
Switch from using string "INIT" to Protocol.Response.ACKBACKUP.
Browse files Browse the repository at this point in the history
  • Loading branch information
koldinger committed Sep 27, 2024
1 parent 561f0f7 commit 78e4639
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Tardis/Backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ def initializeBackup(self):
self.db.newBackupSet(name, self.sessionid, priority, clienttime, version, self.address, self.full, self.config.serverSessionID)

response = {
"message": "INIT",
"message": Protocol.Responses.ACKBACKUP,
"status": "OK",
"sessionid": self.sessionid,
"prevDate": str(self.db.prevBackupDate),
Expand Down
2 changes: 1 addition & 1 deletion src/Tardis/Protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ class Responses(UppercaseStrEnum):
ACKCMDLN = auto()
ACKDONE = auto()
ACKBTCH = auto()
INIT = auto()
ACKBACKUP = "INIT"
ACKSETKEYS = auto()

0 comments on commit 78e4639

Please sign in to comment.