Skip to content

Commit be26f9f

Browse files
committed
Use StringUtil::join
Signed-off-by: Taiki Ono <[email protected]>
1 parent 80560ce commit be26f9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/common/stats/statsd.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ const std::string UdpStatsdSink::buildTagStr(const std::vector<Tag>& tags) {
9292
int i = 0;
9393
for (const Tag& tag : tags) {
9494
if (i == 0) {
95-
tag_str.append(fmt::format("{}:{}", tag.name_, tag.value_));
95+
std::vector<std::string> v = {tag.name_, tag.value_};
96+
tag_str.append(StringUtil::join(v, ":"));
9697
} else {
9798
tag_str.append(fmt::format(",{}:{}", tag.name_, tag.value_));
9899
}

0 commit comments

Comments
 (0)