Some nitpicking

This commit is contained in:
Asim
2015-12-02 01:38:56 +00:00
parent 7a870dfbb1
commit c5a08d3159
3 changed files with 7 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ func (s *rpcServer) accept(sock transport.Socket) {
ctx := c.WithMetadata(context.Background(), hdr)
// TODO: needs better error handling
if err := s.rpc.ServeRequestWithContext(ctx, codec); err != nil {
if err := s.rpc.serveRequest(ctx, codec); err != nil {
log.Errorf("Unexpected error serving request, closing socket: %v", err)
sock.Close()
}