Skip to content

Commit

Permalink
chore(influxdb_logs) use single char
Browse files Browse the repository at this point in the history
  • Loading branch information
juvenn committed Apr 2, 2023
1 parent bb560db commit 8e6118b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sinks/influxdb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,9 @@ pub mod test_util {
//
pub(crate) fn split_line_protocol(line_protocol: &str) -> (&str, &str, String, &str) {
// tags and ts may not be present
let parts: Vec<&str> = line_protocol.splitn(2, " ").collect();
let (measurement, tags) = parts[0].split_once(",").unwrap_or((parts[0], ""));
let (fields, ts) = parts[1].split_once(" ").unwrap_or((parts[1], ""));
let parts: Vec<&str> = line_protocol.splitn(2, ' ').collect();
let (measurement, tags) = parts[0].split_once(',').unwrap_or((parts[0], ""));
let (fields, ts) = parts[1].split_once(' ').unwrap_or((parts[1], ""));

(measurement, tags, fields.to_string(), ts)
}
Expand Down

0 comments on commit 8e6118b

Please sign in to comment.