Lower priority of async dns queries

They make take longer if there are network problems
This commit is contained in:
Daniel 2020-05-18 15:29:28 +02:00
parent bdcf499f22
commit 3adf52d19c

View file

@ -160,7 +160,7 @@ func checkCache(ctx context.Context, q *Query) *RRCache {
log.Tracer(ctx).Trace("resolver: serving from cache, requesting new")
// resolve async
module.StartMediumPriorityMicroTask(&mtAsyncResolve, func(ctx context.Context) error {
module.StartLowPriorityMicroTask(&mtAsyncResolve, func(ctx context.Context) error {
_, _ = resolveAndCache(ctx, q)
return nil
})