diff --git a/src/banking_stage.rs b/src/banking_stage.rs index ed6cc92b37..9944cd1da5 100644 --- a/src/banking_stage.rs +++ b/src/banking_stage.rs @@ -353,7 +353,7 @@ mod tests { // glad they all fit assert_eq!(packets.len(), 1); - verified_sender // tx, no_ver, anf + verified_sender // tx, no_ver, anf .send(vec![(packets[0].clone(), vec![1u8, 0u8, 1u8])]) .unwrap(); diff --git a/src/metrics.rs b/src/metrics.rs index 6fda376679..24c6e50a59 100644 --- a/src/metrics.rs +++ b/src/metrics.rs @@ -231,21 +231,16 @@ pub fn set_panic_hook(program: &'static str) { // TODO: use ono.message() when it becomes stable ono.to_string(), ), - ) - .add_field( + ).add_field( "location", influxdb::Value::String(match ono.location() { Some(location) => location.to_string(), None => "?".to_string(), }), - ) - .add_field( + ).add_field( "host", - influxdb::Value::String( - hostname().unwrap_or_else(|_| "?".to_string()) - ), - ) - .to_owned(), + influxdb::Value::String(hostname().unwrap_or_else(|_| "?".to_string())), + ).to_owned(), ); // Flush metrics immediately in case the process exits immediately // upon return