Skip to content

Commit

Permalink
send self.i, not self.value
Browse files Browse the repository at this point in the history
  • Loading branch information
elazarg committed Aug 4, 2024
1 parent 1045b98 commit 23742a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkpoint/persist.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def commit(self) -> None:
self.i += 1
if self.i % self.step in [0, 1]:
# send commend to save_snapshot server to take snapshot
self.socket.send(struct.pack("Q", self.i, self.value))
self.socket.send(struct.pack("Q", self.i))
# wait for snapshot to start, and continue after it's done
self.socket.recv(256)

Expand Down

0 comments on commit 23742a9

Please sign in to comment.