Skip to content

Commit

Permalink
feat: rename
Browse files Browse the repository at this point in the history
wip

feat: election implementation (without term & log)

fix: safely resign leader

feat: add term for leader decision on two leaders

feat: term implementation updates

fix: implement mutex

fix: submit immediately after becoming leader

fix: rename raftNode to submitter

wip

wip

fix: remove work in process
  • Loading branch information
nick-bisonai committed Feb 8, 2024
1 parent dd448f9 commit 28b83b2
Show file tree
Hide file tree
Showing 3 changed files with 539 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fetcher-v2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ func main() {
// }
// electorNode.Start()

raftNode, err := node.NewRaftNode(h, ps, "orakl-node-raft-2024-gazua!")
submitter, err := node.NewSubmitter(h, ps, "orakl-node-submitter-2024-gazua!")
if err != nil {
log.Fatal(err)
}
raftNode.Run()
submitter.Run()

nodes := make(map[string]*utils.FetcherNode)

Expand Down
Loading

0 comments on commit 28b83b2

Please sign in to comment.