1
0
mirror of https://github.com/chylex/Apache-Prometheus-Exporter.git synced 2025-09-15 08:32:10 +02:00

Compare commits

...

2 Commits

3 changed files with 7 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -25,7 +25,7 @@ checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6"
[[package]]
name = "apache_prometheus_exporter"
version = "0.1.0"
version = "1.0.0"
dependencies = [
"anyhow",
"hyper",

View File

@@ -1,6 +1,6 @@
[package]
name = "apache_prometheus_exporter"
version = "0.1.0"
version = "1.0.0"
edition = "2021"
[[bin]]

View File

@@ -161,6 +161,11 @@ impl LogWatcher {
}
};
while let Ok(Some(_)) = self.state.lines.next_line().await {
// There are occasional spurious file creation events, so reading
// from the beginning would read lines that were already counted.
}
continue 'read_loop;
}
}