mirror of
https://github.com/safing/portmaster
synced 2025-09-05 03:59:11 +00:00
Lower priority of async dns queries
They make take longer if there are network problems
This commit is contained in:
parent
bdcf499f22
commit
3adf52d19c
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ func checkCache(ctx context.Context, q *Query) *RRCache {
|
||||||
log.Tracer(ctx).Trace("resolver: serving from cache, requesting new")
|
log.Tracer(ctx).Trace("resolver: serving from cache, requesting new")
|
||||||
|
|
||||||
// resolve async
|
// resolve async
|
||||||
module.StartMediumPriorityMicroTask(&mtAsyncResolve, func(ctx context.Context) error {
|
module.StartLowPriorityMicroTask(&mtAsyncResolve, func(ctx context.Context) error {
|
||||||
_, _ = resolveAndCache(ctx, q)
|
_, _ = resolveAndCache(ctx, q)
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue