-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### 2.5.0 - Added `STORAGE_HELLO_NOTIFICATION` message type to the message protocol. - Added `STORAGE_STATE_NOTIFICATION` message type to the message protocol. - Removed `import` method from `Hamok` in favor of the unified `join` method. - Removed `export` method from `Hamok` in favor of the unified `join` method. - Removed `start` method from `Hamok` in favor of the unified `join` method. - Removed `stop` method from `Hamok` in favor of the `leave` method. - Added `close` method to `Hamok` to close all resources. - Added an `ready` promise to all storage components, allowing for awaiting until the storage is ready and initialized. - Updated `HamokConnection` to join before sending any message except `StorageHello` and `StorageState`. - Removed the restriction of log gap errors between connected peers. The follower now picks up whatever it can, with the storage responsible for providing up-to-date snapshots to a remote peer through `StorageState` notifications. - Fixed a bug where a follower would vote for a candidate even if it had a leader. - Added auto-rejoin functionality for `Hamok` when the connection is lost, provided it was in the joined state. - Fixed a bug where detached remote peers were not detected if the peer was a follower and lost all connections. (Added `_checkRemotePeers` method for this). - Added `ready` promise to `Hamok` to await until the `Hamok` is ready and initialized.
- Loading branch information
1 parent
8e16778
commit d571efc
Showing
62 changed files
with
3,026 additions
and
1,490 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
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
Oops, something went wrong.