add a comment

This commit is contained in:
yangzhouhan
2015-08-13 18:32:39 -07:00
parent e1eaac2884
commit 80bd4c598d

View File

@ -27,6 +27,7 @@ func (s *HealthServer) Check(ctx context.Context, in *healthpb.HealthCheckReques
s.mu.Lock() s.mu.Lock()
defer s.mu.Unlock() defer s.mu.Unlock()
if in.Service == "" { if in.Service == "" {
// check the server overall health status.
return &healthpb.HealthCheckResponse{ return &healthpb.HealthCheckResponse{
Status: healthpb.HealthCheckResponse_SERVING, Status: healthpb.HealthCheckResponse_SERVING,
}, nil }, nil