Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,9 @@ void PerformanceEntryReporter::scheduleFlushBuffer() {

struct StrKey {
uint32_t key;
constexpr StrKey(const char *s)
: key(folly::hash::fnv32_buf(s, sizeof(s) - 1)) {}
StrKey(const char *s) : key(folly::hash::fnv32_buf(s, std::strlen(s))) {}

constexpr bool operator==(const StrKey &rhs) const {
bool operator==(const StrKey &rhs) const {
return key == rhs.key;
}
};
Expand Down