Skip to content

Commit

Permalink
feat(client): add names to DNS threads
Browse files Browse the repository at this point in the history
  • Loading branch information
brogowski committed Oct 3, 2017
1 parent 4b1e9d1 commit e0de55d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/client/dns.rs
Expand Up @@ -3,7 +3,7 @@ use std::net::{SocketAddr, ToSocketAddrs};
use std::vec;

use ::futures::{Future, Poll};
use ::futures_cpupool::{CpuPool, CpuFuture};
use ::futures_cpupool::{CpuPool, CpuFuture, Builder};

#[derive(Clone)]
pub struct Dns {
Expand All @@ -13,7 +13,10 @@ pub struct Dns {
impl Dns {
pub fn new(threads: usize) -> Dns {
Dns {
pool: CpuPool::new(threads)
pool: Builder::new()
.name_prefix("hyper-dns")
.pool_size(threads)
.create()
}
}

Expand Down

0 comments on commit e0de55d

Please sign in to comment.