Skip to content

Commit 9b0d58d

Browse files
committed
compilation profile
1 parent 67bd80c commit 9b0d58d

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,11 @@ members = [
44
"doh",
55
"doh-daemon",
66
"doh-common"]
7+
8+
9+
[profile.release]
10+
opt-level = "s"
11+
debug = false
12+
overflow-checks = false
13+
strip = "debuginfo"
14+
lto = true

doh-daemon/src/dbus/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,13 @@ impl DoHBusService {
2727
family: u32,
2828
) -> zbus::fdo::Result<libnss::host::Host> {
2929
trace!("received query: {} - {} {}", process_id, name, family);
30-
let start = Instant::now();
30+
3131
let result = self
3232
.resolver
3333
.resolve(process_id, name, family)
3434
.await
3535
.map_err(|e| e.into());
3636

37-
let elapsed = start.elapsed();
38-
println!("Async method took: {:.6} seconds", elapsed.as_secs_f64());
39-
4037
result
4138
}
4239

doh-daemon/src/settings/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ impl ApplicationSettings {
4646
}
4747

4848
pub fn configs() -> Self {
49-
let config_file = std::env::var("CONFIG_FILE").unwrap_or("doh-daemon/config.ini".to_string());
5049
let config_file = std::env::var("CONFIG_FILE").unwrap_or("/etc/frost-doh/config.prod.ini".to_string());
50+
//let config_file = std::env::var("CONFIG_FILE").unwrap_or("doh-daemon/config.ini".to_string());
5151

5252
let mut config = Ini::new();
5353

0 commit comments

Comments
 (0)