From cbafc74e416793a38582b80386a148a730b869cc Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 6 Apr 2022 18:41:43 +0300 Subject: [PATCH] fux Signed-off-by: Vasiliy Tolstov --- grpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grpc.go b/grpc.go index 497f536..2945133 100644 --- a/grpc.go +++ b/grpc.go @@ -255,7 +255,7 @@ func (g *grpcServer) handler(srv interface{}, stream grpc.ServerStream) (err err if v, ok := md.Get("Grpc-Timeout"); ok { md.Del("Grpc-Timeout") td = v[:len(v)-1] - switch v[:] { + switch v[len(v)-1:] { case "S": td += "s" case "M":