normalise proxy name (#1203)
This commit is contained in:
parent
6460839705
commit
4a6f438db2
4
grpc.go
4
grpc.go
@ -52,6 +52,10 @@ func (g *grpcClient) next(request client.Request, opts client.CallOptions) (sele
|
|||||||
|
|
||||||
// get proxy
|
// get proxy
|
||||||
if prx := os.Getenv("MICRO_PROXY"); len(prx) > 0 {
|
if prx := os.Getenv("MICRO_PROXY"); len(prx) > 0 {
|
||||||
|
// default name
|
||||||
|
if prx == "service" {
|
||||||
|
prx = "go.micro.proxy"
|
||||||
|
}
|
||||||
service = prx
|
service = prx
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user