-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Explicitly store Heartbeat action
Prior to this commit, the `ReplicationCore` being awakened without any specific action in `ReplicationCore.next_action` implied a heartbeat was to be sent. This approach was cryptic and the intent behind the action was not clear. In this commit, we have introduced explicitness to the process: if `ReplicationCore` is intended to send a heartbeat, a distinct `Data::Heartbeat` variant is now stored in `next_action`. This change ensures clarity by explicitly representing heartbeat actions, removing any ambiguity from the replication logic.
- Loading branch information
1 parent
c1aa1b5
commit c958647
Showing
2 changed files
with
44 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters