-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rework3: Implement Multi-Raft (#326)
Multi-raft
- Loading branch information
1 parent
31724e7
commit 5301a2a
Showing
35 changed files
with
396 additions
and
336 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM 'rust:1.72-bookworm' | ||
FROM 'rust:1.75-bookworm' | ||
|
||
WORKDIR '/work' | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '3' | ||
|
||
services: | ||
dev: | ||
image: lol-dev:latest | ||
working_dir: /work | ||
volumes: | ||
- ./:/work | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
networks: | ||
- raft-network | ||
|
||
testapp: | ||
image: lol-testapp:latest | ||
entrypoint: | ||
- /bin/sh | ||
|
||
networks: | ||
raft-network: | ||
driver: bridge |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
use super::*; | ||
|
||
pub type RaftClient = raft::raft_client::RaftClient<tonic::transport::channel::Channel>; | ||
pub use raft::{AddServerRequest, ReadRequest, RemoveServerRequest, Response, WriteRequest}; | ||
pub use raft::{ | ||
AddServerRequest, ReadRequest, RemoveServerRequest, Response, TimeoutNowRequest, WriteRequest, | ||
}; |
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
2 changes: 2 additions & 0 deletions
2
lol2/src/requester/stream.rs → lol2/src/communicator/stream.rs
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.