Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2022-04-06 18:41:43 +03:00
parent 1e19359ab1
commit cbafc74e41

View File

@ -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":