refactor: streamline asynchronous handling in config and resolve setup

This commit is contained in:
Tunglies
2025-08-29 06:16:42 +08:00
Unverified
parent 165018bcbc
commit 23d7dc86d5
4 changed files with 25 additions and 29 deletions

View File

@@ -51,7 +51,11 @@ impl AsyncHandler {
F: ?Sized,
{
const TRACE_MINI_SIZE: usize = 4;
const TRACE_SPECIAL_SIZE: usize = 24;
let size = std::mem::size_of_val(f);
if size == TRACE_SPECIAL_SIZE {
return;
}
if size <= TRACE_MINI_SIZE {
return;
}