refactor(servers): emit http.Handlers from *Server

This commit is contained in:
Brian Waldon
2014-01-21 08:08:20 -08:00
parent 089021ca6d
commit 2fe22f1890
4 changed files with 6 additions and 19 deletions

View File

@ -70,14 +70,14 @@ func RunServer(f func(*server.Server)) {
go func() {
c <- true
ps.Start(false, []string{})
http.Serve(psListener, ps)
http.Serve(psListener, ps.HTTPHandler())
}()
<-c
// Start up etcd server.
go func() {
c <- true
http.Serve(sListener, s)
http.Serve(sListener, s.HTTPHandler())
}()
<-c