mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: remove useless sleep
etcdserver.Do will block until there exists leader
This commit is contained in:
parent
34db45a948
commit
54b9c55af3
@ -53,11 +53,6 @@ func testServer(t *testing.T, ns int64) {
|
|||||||
ss[i] = srv
|
ss[i] = srv
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: find fast way to trigger leader election
|
|
||||||
// TODO: introduce the way to know that the leader has been elected
|
|
||||||
// then remove this sleep.
|
|
||||||
time.Sleep(110 * time.Millisecond)
|
|
||||||
|
|
||||||
for i := 1; i <= 10; i++ {
|
for i := 1; i <= 10; i++ {
|
||||||
r := pb.Request{
|
r := pb.Request{
|
||||||
Method: "PUT",
|
Method: "PUT",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user