handleGRPCError consolidates GRPC Server error handling by sending any error to errChan except for grpc.ErrServerStopped which is ignored.
(err error, errChan chan error)
| 695 | // handleGRPCError consolidates GRPC Server error handling by sending |
| 696 | // any error to errChan except for grpc.ErrServerStopped which is ignored. |
| 697 | func handleGRPCError(err error, errChan chan error) { |
| 698 | if err == grpc.ErrServerStopped { |
| 699 | err = nil |
| 700 | } |
| 701 | |
| 702 | select { |
| 703 | case errChan <- err: |
| 704 | default: |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | // HTTPListenAddr exposes `net.Addr` that `Server` is listening to for HTTP connections. |
| 709 | func (s *Server) HTTPListenAddr() net.Addr { |