Skip to content

Commit 768f5a7

Browse files
authored
chore(outbound): avoid allocation in TLS route labels (#3605)
1 parent 18d8257 commit 768f5a7

File tree

1 file changed

+1
-1
lines changed
  • linkerd/app/outbound/src/tls/logical

1 file changed

+1
-1
lines changed

linkerd/app/outbound/src/tls/logical/route.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl prom::EncodeLabelSetMut for RouteLabels {
162162
} = self;
163163
parent.encode_label_set(enc)?;
164164
route.encode_label_set(enc)?;
165-
("hostname", hostname.to_string()).encode(enc.encode_label())?;
165+
("hostname", hostname.as_ref().as_str()).encode(enc.encode_label())?;
166166
Ok(())
167167
}
168168
}

0 commit comments

Comments
 (0)