Skip to content

Commit e0de55d

Browse files
committed
feat(client): add names to DNS threads
1 parent 4b1e9d1 commit e0de55d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/client/dns.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::net::{SocketAddr, ToSocketAddrs};
33
use std::vec;
44

55
use ::futures::{Future, Poll};
6-
use ::futures_cpupool::{CpuPool, CpuFuture};
6+
use ::futures_cpupool::{CpuPool, CpuFuture, Builder};
77

88
#[derive(Clone)]
99
pub struct Dns {
@@ -13,7 +13,10 @@ pub struct Dns {
1313
impl Dns {
1414
pub fn new(threads: usize) -> Dns {
1515
Dns {
16-
pool: CpuPool::new(threads)
16+
pool: Builder::new()
17+
.name_prefix("hyper-dns")
18+
.pool_size(threads)
19+
.create()
1720
}
1821
}
1922

0 commit comments

Comments
 (0)