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

Commit d52a0000 authored by Mike Yu's avatar Mike Yu
Browse files

Test: Reduce DohFrontend worker_thread to 1

Similar to aosp/1938520, we don't need to run DohFrontend on two
threads.

Also, as we don't spawn blocking tasks in DohFrontend, it doesn't
impact performance if we use the default value of max_blocking_threads.
So we remove it.

Bug: 235763745
Test: atest
Change-Id: Ifb0231f0ab6283549b3d4b38fcf89540bf0915aa
parent 66cb04a1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -35,8 +35,7 @@ use tokio::task::JoinHandle;
lazy_static! {
    static ref RUNTIME_STATIC: Arc<Runtime> = Arc::new(
        Builder::new_multi_thread()
            .worker_threads(2)
            .max_blocking_threads(1)
            .worker_threads(1)
            .enable_all()
            .thread_name("DohFrontend")
            .build()