Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
denopink committed Feb 27, 2024
1 parent 6e9817a commit e5d8547
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ require (
github.com/gorilla/mux v1.8.1
github.com/justinas/alice v1.2.0
github.com/prometheus/client_golang v1.18.0
github.com/prometheus/client_model v0.5.0
github.com/segmentio/ksuid v1.0.4
github.com/spf13/cast v1.6.0
github.com/spf13/pflag v1.0.5
Expand Down Expand Up @@ -78,7 +79,6 @@ require (
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.46.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
Expand Down
7 changes: 5 additions & 2 deletions workerPool.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"io"
"net"
"net/http"
"net/url"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -138,8 +139,10 @@ func getDoErrReason(err error) string {
return opErrReason

Check warning on line 139 in workerPool.go

View check run for this annotation

Codecov / codecov/patch

workerPool.go#L139

Added line #L139 was not covered by tests
} else if errors.Is(err, net.UnknownNetworkError("")) {
return networkErrReason

Check warning on line 141 in workerPool.go

View check run for this annotation

Codecov / codecov/patch

workerPool.go#L141

Added line #L141 was not covered by tests
} else if err := errors.Unwrap(err).Error(); strings.TrimSpace(strings.ToLower(err)) == "eof" {
return connectionUnexpectedlyClosedEOFReason
} else if err, ok := err.(*url.Error); ok {
if strings.TrimSpace(strings.ToLower(err.Unwrap().Error())) == "eof" {
return connectionUnexpectedlyClosedEOFReason
}

Check warning on line 145 in workerPool.go

View check run for this annotation

Codecov / codecov/patch

workerPool.go#L143-L145

Added lines #L143 - L145 were not covered by tests
}

return genericDoReason
Expand Down

0 comments on commit e5d8547

Please sign in to comment.