Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 0958052

Browse files
authored
Fix duplicate keys in with_tag_map_benchmark.cc. (#243)
This makes the benchmark crash in non-opt mode.
1 parent 0c58f82 commit 0958052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opencensus/tags/internal/with_tag_map_benchmark.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ namespace {
2727
// Returns an example TagMap.
2828
TagMap Tags() {
2929
static const auto k1 = TagKey::Register("key1");
30-
static const auto k2 = TagKey::Register("key1");
31-
static const auto k3 = TagKey::Register("key1");
30+
static const auto k2 = TagKey::Register("key2");
31+
static const auto k3 = TagKey::Register("key3");
3232
return TagMap({{k1, "val1"}, {k2, "val2"}, {k3, "val3"}});
3333
}
3434

0 commit comments

Comments
 (0)