chore: update to go1.21rc2, drop support for go1.19

This commit is contained in:
wwqgtxx
2023-07-02 09:59:18 +08:00
parent c6b84b0f20
commit 8f1475d5d0
18 changed files with 47 additions and 118 deletions

View File

@ -313,7 +313,7 @@ func batchExchange(ctx context.Context, clients []dnsClient, m *D.Msg) (msg *D.M
if elm == nil {
err := errors.New("all DNS requests failed")
if fErr := fast.Error(); fErr != nil {
err = fmt.Errorf("%w, first error: %s", err, fErr.Error())
err = fmt.Errorf("%w, first error: %w", err, fErr)
}
return nil, true, err
}