From cfd8a61e7543a8b9b384713a7e53022b6e8fc374 Mon Sep 17 00:00:00 2001 From: Josh Humphries Date: Thu, 9 May 2019 11:11:13 -0400 Subject: [PATCH] fix build(?); review feedback --- runtime/mux.go | 2 +- runtime/proto_errors.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/mux.go b/runtime/mux.go index a3f3937e6d4..128a2405ef4 100644 --- a/runtime/mux.go +++ b/runtime/mux.go @@ -117,7 +117,7 @@ func WithDisablePathLengthFallback() ServeMuxOption { // // For stream errors that occur before any response has been written, the mux's // ProtoErrorHandler will be invoked. However, once data has been written, the errors must -// be handled differently: they must included in the response body. The response body's +// be handled differently: they must be included in the response body. The response body's // final message will include the error details returned by the stream error handler. func WithStreamErrorHandler(fn StreamErrorHandlerFunc) ServeMuxOption { return func(serveMux *ServeMux) { diff --git a/runtime/proto_errors.go b/runtime/proto_errors.go index f264f1cf6ae..34fb6f5377c 100644 --- a/runtime/proto_errors.go +++ b/runtime/proto_errors.go @@ -1,14 +1,14 @@ package runtime import ( + "context" "io" "net/http" - "context" + "github.com/grpc-ecosystem/grpc-gateway/internal" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/status" - "github.com/grpc-ecosystem/grpc-gateway/runtime/internal" ) // StreamErrorHandlerFunc accepts an error as a gRPC error generated via status package and translates it into a