mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcd: we should trust people
This commit is contained in:
parent
55c4a3307d
commit
3af8c7da3c
@ -115,9 +115,6 @@ func (s *Server) SetTick(tick time.Duration) {
|
|||||||
|
|
||||||
// Stop stops the server elegently.
|
// Stop stops the server elegently.
|
||||||
func (s *Server) Stop() {
|
func (s *Server) Stop() {
|
||||||
if s.mode.Get() == stopMode {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
s.mu.Lock()
|
s.mu.Lock()
|
||||||
s.stopped = true
|
s.stopped = true
|
||||||
switch s.mode.Get() {
|
switch s.mode.Get() {
|
||||||
|
@ -190,7 +190,7 @@ func buildServer(t *testing.T, c *config.Config, id int64) (e *Server, h *httpte
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
destroyServer(t, e, h)
|
h.Close()
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
time.Sleep(10 * time.Millisecond)
|
time.Sleep(10 * time.Millisecond)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user