Skip to content

Commit

Permalink
Add missed string_view in ArchiveWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
gibber9809 committed Dec 16, 2024
1 parent 22e5ad4 commit c993273
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/core/src/clp_s/ArchiveWriter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class ArchiveWriter {
* @return the epoch time corresponding to the string timestamp
*/
epochtime_t ingest_timestamp_entry(
std::string const& key,
std::string_view key,
int32_t node_id,
std::string_view timestamp,
uint64_t& pattern_id
Expand All @@ -136,11 +136,11 @@ class ArchiveWriter {
* @param node_id
* @param timestamp
*/
void ingest_timestamp_entry(std::string const& key, int32_t node_id, double timestamp) {
void ingest_timestamp_entry(std::string_view key, int32_t node_id, double timestamp) {
m_timestamp_dict.ingest_entry(key, node_id, timestamp);
}

void ingest_timestamp_entry(std::string const& key, int32_t node_id, int64_t timestamp) {
void ingest_timestamp_entry(std::string_view key, int32_t node_id, int64_t timestamp) {
m_timestamp_dict.ingest_entry(key, node_id, timestamp);
}

Expand Down

0 comments on commit c993273

Please sign in to comment.