Use errors.Join instead of copied version

This commit is contained in:
Cuong Manh Le
2023-04-05 16:58:58 +07:00
committed by Cuong Manh Le
parent 663dbbb476
commit 24e62e18fa
2 changed files with 1 additions and 44 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ func (o *osResolver) Resolve(ctx context.Context, msg *dns.Msg) (*dns.Msg, error
errs = append(errs, res.err)
}
return nil, joinErrors(errs...)
return nil, errors.Join(errs...)
}
func newDialer(dnsAddress string) *net.Dialer {