Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c63cb99d authored by Mike Yu's avatar Mike Yu Committed by Automerger Merge Worker
Browse files

DoH: Reduce DOH_THREADS from 2 to 1 am: 5d50b498

Original change: https://android-review.googlesource.com/c/platform/packages/modules/DnsResolver/+/1938520

Change-Id: Iea5b1684319083c73be875b1b0cfd22541c5c71f
parents 61ab3f4a 5d50b498
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -76,7 +76,7 @@ pub struct Dispatcher {
}
}


impl Dispatcher {
impl Dispatcher {
    const DOH_THREADS: usize = 2;
    const DOH_THREADS: usize = 1;


    pub fn new(validation: ValidationReporter, tagger: SocketTagger) -> Result<Dispatcher> {
    pub fn new(validation: ValidationReporter, tagger: SocketTagger) -> Result<Dispatcher> {
        let (cmd_sender, cmd_receiver) = mpsc::channel::<Command>(MAX_BUFFERED_CMD_COUNT);
        let (cmd_sender, cmd_receiver) = mpsc::channel::<Command>(MAX_BUFFERED_CMD_COUNT);