erikgrinaker / toydb

Distributed SQL database in Rust, written as a learning project
Apache License 2.0
5.99k stars 555 forks source link

Separate Raft thread for heartbeats and elections #22

Closed erikgrinaker closed 4 years ago

erikgrinaker commented 4 years ago

Raft currently runs in a single thread, such that long-running state operations block the leader from sending heartbeats and asserting leadership.