Skip to content

Commit

Permalink
Propose faster
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenMathew authored and mprimi committed Oct 25, 2024
1 parent ccb4d9c commit cf44d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toy-raft/cmd/replica/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func main() {
// Block forever
for {
select {
case <-time.After(3 * time.Second):
case <-time.After(1 * time.Second):
rng.Read(buffer)
if err := srv.Propose(buffer); err != nil {
if errors.Is(err, raft.ErrNotLeader) {
Expand Down

0 comments on commit cf44d6b

Please sign in to comment.