Skip to content

Commit

Permalink
V0.8.5 release preparation (#31)
Browse files Browse the repository at this point in the history
* Bump version to 0.8.5
* Fix clippy warnings
  • Loading branch information
Alexander Thaller authored Aug 23, 2022
1 parent fbe7e0e commit 1612db7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "prometheus_exporter"
version = "0.8.4"
version = "0.8.5"
authors = ["Alexander Thaller <alexander.thaller@trivago.com>"]

description = "Helper libary to export prometheus metrics using tiny-http."
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ impl Server {
&request_sender,
&is_waiting,
&update_lock,
registry.clone(),
&registry,
)
} else {
Self::handler_redirect(request, &endpoint)
Expand All @@ -423,7 +423,7 @@ impl Server {
request_sender: &SyncSender<Arc<Barrier>>,
is_waiting: &Arc<AtomicBool>,
update_lock: &Arc<Mutex<()>>,
registry: prometheus::Registry,
registry: &prometheus::Registry,
) -> Result<(), HandlerError> {
#[cfg(feature = "internal_metrics")]
HTTP_COUNTER.inc();
Expand Down Expand Up @@ -454,7 +454,7 @@ impl Server {
fn process_request(
request: Request,
encoder: &TextEncoder,
registry: prometheus::Registry,
registry: &prometheus::Registry,
) -> Result<(), HandlerError> {
let metric_families = registry.gather();
let mut buffer = vec![];
Expand Down

0 comments on commit 1612db7

Please sign in to comment.