-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Showing
2 changed files
with
14 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters