mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Update hyper to 0.12
This commit is contained in:
parent
95bfaa0a77
commit
024b40b39d
122 changed files with 3835 additions and 3448 deletions
|
@ -23,6 +23,8 @@ use std::io::{self, Write};
|
|||
use std::path::Path;
|
||||
use std::time::Duration;
|
||||
use std_time::precise_time_ns;
|
||||
use tokio;
|
||||
use tokio::prelude::Future;
|
||||
use trace_dump::TraceDump;
|
||||
|
||||
pub trait Formattable {
|
||||
|
@ -470,9 +472,9 @@ impl Profiler {
|
|||
if let Some(ref meta) = *meta {
|
||||
measurement.add_tag("host", meta.url.as_str());
|
||||
};
|
||||
if client.write_one(measurement, None).is_err() {
|
||||
warn!("Could not write measurement to profiler db");
|
||||
}
|
||||
|
||||
tokio::run(client.write_one(measurement, None)
|
||||
.map_err(|e| warn!("Could not write measurement to profiler db: {:?}", e)));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue