From 5ad7c5b8cafe5173a9670cd1e367ec111b656311 Mon Sep 17 00:00:00 2001 From: Menghan Li Date: Thu, 8 Dec 2016 13:48:11 -0800 Subject: [PATCH] add always returns non-nil error comment to server.serve() --- server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server.go b/server.go index 22aa33bf..b52a5630 100644 --- a/server.go +++ b/server.go @@ -343,6 +343,7 @@ func (s *Server) useTransportAuthenticator(rawConn net.Conn) (net.Conn, credenti // read gRPC requests and then call the registered handlers to reply to them. // Serve returns when lis.Accept fails with fatal errors. lis will be closed when // this method returns. +// Serve always returns non-nil error. func (s *Server) Serve(lis net.Listener) error { s.mu.Lock() s.printf("serving")