Browse Source

adds InfluxWriter::is_full

master
Jonathan Strong 5 years ago
parent
commit
a7ffcba0e5
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/influx.rs

+ 2
- 0
src/influx.rs View File

@@ -331,6 +331,8 @@ impl InfluxWriter {
self.tx.clone() self.tx.clone()
} }


pub fn is_full(&self) -> bool { self.tx.is_full() }

pub fn placeholder() -> Self { pub fn placeholder() -> Self {
let (tx, _) = bounded(1024); let (tx, _) = bounded(1024);
Self { Self {


Loading…
Cancel
Save