allow to transfer *status.Status as error from handler #107
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