Skip to content

Commit

Permalink
Fixed payload written to influxdb 2 (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
czarekk215 authored Dec 24, 2024
1 parent 03a4f79 commit 675c7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ impl Storage for InfluxDbStorage {

let (base64, strvalue) = match payload.try_to_string() {
Ok(s) => (false, s),
Err(err) => (true, b64_std_engine.encode(err.to_string()).into()),
Err(_) => (true, b64_std_engine.encode(payload.to_bytes()).into()),
};

// Note: tags are stored as strings in InfluxDB, while fileds are typed.
Expand Down

0 comments on commit 675c7a3

Please sign in to comment.