From 02c1b679819830a720fbd82fee5468a31e29a409 Mon Sep 17 00:00:00 2001 From: Willfrit Date: Wed, 15 May 2019 09:03:43 +0200 Subject: [PATCH] raft_anim topo, faster reconnection --- app_test/raft_anim.lua | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/app_test/raft_anim.lua b/app_test/raft_anim.lua index be5ae97..d4f248b 100644 --- a/app_test/raft_anim.lua +++ b/app_test/raft_anim.lua @@ -2,6 +2,25 @@ Raft leader election implementation with anim log (see tools) + + + + + + + + + + + + + + + + + + + --]] function aUpdateState(state, term) @@ -256,7 +275,7 @@ events.run(function() net.client(n, {initialize = init, send = send, receive = receive, finalize = final}) end end - events.sleep(5) + events.sleep(1) end end)