Skip to content

Commit

Permalink
embed: Fixed serve() err return
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus committed Jul 21, 2016
1 parent e016f6d commit c6baf70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion embed/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,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
}
Expand Down

0 comments on commit c6baf70

Please sign in to comment.