Ignore gRPC Proxy (#1205)
This commit is contained in:
parent
9696efde02
commit
1e40c86dfe
@ -576,11 +576,6 @@ func (g *grpcClient) Publish(ctx context.Context, p client.Message, opts ...clie
|
|||||||
|
|
||||||
topic := p.Topic()
|
topic := p.Topic()
|
||||||
|
|
||||||
// get proxy topic
|
|
||||||
if prx := os.Getenv("MICRO_PROXY"); len(prx) > 0 {
|
|
||||||
options.Exchange = prx
|
|
||||||
}
|
|
||||||
|
|
||||||
// get the exchange
|
// get the exchange
|
||||||
if len(options.Exchange) > 0 {
|
if len(options.Exchange) > 0 {
|
||||||
topic = options.Exchange
|
topic = options.Exchange
|
||||||
|
@ -610,11 +610,6 @@ func (r *rpcClient) Publish(ctx context.Context, msg Message, opts ...PublishOpt
|
|||||||
// set the topic
|
// set the topic
|
||||||
topic := msg.Topic()
|
topic := msg.Topic()
|
||||||
|
|
||||||
// get proxy
|
|
||||||
if prx := os.Getenv("MICRO_PROXY"); len(prx) > 0 {
|
|
||||||
options.Exchange = prx
|
|
||||||
}
|
|
||||||
|
|
||||||
// get the exchange
|
// get the exchange
|
||||||
if len(options.Exchange) > 0 {
|
if len(options.Exchange) > 0 {
|
||||||
topic = options.Exchange
|
topic = options.Exchange
|
||||||
|
Loading…
Reference in New Issue
Block a user