fux
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
1e19359ab1
commit
cbafc74e41
2
grpc.go
2
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 {
|
if v, ok := md.Get("Grpc-Timeout"); ok {
|
||||||
md.Del("Grpc-Timeout")
|
md.Del("Grpc-Timeout")
|
||||||
td = v[:len(v)-1]
|
td = v[:len(v)-1]
|
||||||
switch v[:] {
|
switch v[len(v)-1:] {
|
||||||
case "S":
|
case "S":
|
||||||
td += "s"
|
td += "s"
|
||||||
case "M":
|
case "M":
|
||||||
|
Loading…
Reference in New Issue
Block a user