mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #6016 from endocode/kayrus/fix_serve_err_return
embed: Fixed serve() err return
This commit is contained in:
commit
2bf55e3a15
@ -127,7 +127,9 @@ func StartEtcd(inCfg *Config) (e *Etcd, err error) {
|
||||
e.errc = make(chan error, len(e.Peers)+len(e.Clients)+2*len(e.sctxs))
|
||||
|
||||
e.Server.Start()
|
||||
e.serve()
|
||||
if err = e.serve(); err != nil {
|
||||
return
|
||||
}
|
||||
<-e.Server.ReadyNotify()
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user