Browse Source

adds check that buffer_size > 0 to allow 0-size buffer, flush every message setting

master
Jonathan Strong 7 years ago
parent
commit
9aaf6cd8ab
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/influx.rs

+ 1
- 1
src/influx.rs View File

@@ -232,7 +232,7 @@ impl InfluxWriter {
"buf.len()" => buf.len()); "buf.len()" => buf.len());


match prev { match prev {
0 => {
0 if buffer_size > 0 => {
buf.push_str(s); buf.push_str(s);
1 1
} }


Loading…
Cancel
Save