1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-18 22:17:44 +02:00

Fix health checker

This commit is contained in:
Asim
2015-05-21 23:06:01 +01:00
parent c9df1cf7d2
commit d67c1ba111
5 changed files with 61 additions and 17 deletions

View File

@ -2,7 +2,6 @@ package server
import (
"bytes"
"net/http"
"sync"
log "github.com/golang/glog"
@ -97,7 +96,7 @@ func (s *RpcServer) Register(r Receiver) error {
}
func (s *RpcServer) Start() error {
registerHealthChecker(http.DefaultServeMux)
registerHealthChecker(s)
ts, err := s.opts.transport.Listen(s.address)
if err != nil {