mirror of https://github.com/grpc/grpc-go.git
				
				
				
			add a comment
This commit is contained in:
		
							parent
							
								
									e1eaac2884
								
							
						
					
					
						commit
						80bd4c598d
					
				| 
						 | 
				
			
			@ -27,6 +27,7 @@ func (s *HealthServer) Check(ctx context.Context, in *healthpb.HealthCheckReques
 | 
			
		|||
	s.mu.Lock()
 | 
			
		||||
	defer s.mu.Unlock()
 | 
			
		||||
	if in.Service == "" {
 | 
			
		||||
		// check the server overall health status.
 | 
			
		||||
		return &healthpb.HealthCheckResponse{
 | 
			
		||||
			Status: healthpb.HealthCheckResponse_SERVING,
 | 
			
		||||
		}, nil
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue