Peer service optimization (#5056)
This commit is contained in:
parent
c3e0c258d7
commit
642f2c1614
|
@ -58,6 +58,12 @@ public final class PeerServiceAttributesExtractor<REQUEST, RESPONSE>
|
||||||
REQUEST request,
|
REQUEST request,
|
||||||
@Nullable RESPONSE response,
|
@Nullable RESPONSE response,
|
||||||
@Nullable Throwable error) {
|
@Nullable Throwable error) {
|
||||||
|
|
||||||
|
if (peerServiceMapping.isEmpty()) {
|
||||||
|
// optimization for common case
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
String peerName = netClientAttributesExtractor.peerName(request, response);
|
String peerName = netClientAttributesExtractor.peerName(request, response);
|
||||||
String peerService = mapToPeerService(peerName);
|
String peerService = mapToPeerService(peerName);
|
||||||
if (peerService == null) {
|
if (peerService == null) {
|
||||||
|
|
Loading…
Reference in New Issue