Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Optimize initialization of `TrustDnsResolver` Replace use of `tokio::sync::Mutex` with `once_cell::sync::OnceCell` since there's no need for it to be `async` and thus it can just use `OnceCell` instead of `Mutex`. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Optimize `TrustDnsResolver`: Rm use of `Lazy` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Optimize `TrustDnsResolver`: Rm unnecessary `Arc` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Derive `Default` on `TrustDnsResolver` instead of implementing `TrustDnsResolver::new()` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --------- Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
- Loading branch information