cargo fmt
This commit is contained in:
@@ -353,7 +353,7 @@ mod tests {
|
|||||||
|
|
||||||
// glad they all fit
|
// glad they all fit
|
||||||
assert_eq!(packets.len(), 1);
|
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])])
|
.send(vec![(packets[0].clone(), vec![1u8, 0u8, 1u8])])
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
@@ -231,21 +231,16 @@ pub fn set_panic_hook(program: &'static str) {
|
|||||||
// TODO: use ono.message() when it becomes stable
|
// TODO: use ono.message() when it becomes stable
|
||||||
ono.to_string(),
|
ono.to_string(),
|
||||||
),
|
),
|
||||||
)
|
).add_field(
|
||||||
.add_field(
|
|
||||||
"location",
|
"location",
|
||||||
influxdb::Value::String(match ono.location() {
|
influxdb::Value::String(match ono.location() {
|
||||||
Some(location) => location.to_string(),
|
Some(location) => location.to_string(),
|
||||||
None => "?".to_string(),
|
None => "?".to_string(),
|
||||||
}),
|
}),
|
||||||
)
|
).add_field(
|
||||||
.add_field(
|
|
||||||
"host",
|
"host",
|
||||||
influxdb::Value::String(
|
influxdb::Value::String(hostname().unwrap_or_else(|_| "?".to_string())),
|
||||||
hostname().unwrap_or_else(|_| "?".to_string())
|
).to_owned(),
|
||||||
),
|
|
||||||
)
|
|
||||||
.to_owned(),
|
|
||||||
);
|
);
|
||||||
// Flush metrics immediately in case the process exits immediately
|
// Flush metrics immediately in case the process exits immediately
|
||||||
// upon return
|
// upon return
|
||||||
|
Reference in New Issue
Block a user