Skip to content

Commit

Permalink
fix: minor fixes (static checks)
Browse files Browse the repository at this point in the history
  • Loading branch information
stergiotis committed Aug 20, 2023
1 parent 1e0ddba commit 0b07811
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ go get github.com/stergiotis/boxer
``

## Contributing
Currently, no third party contributions are accepted.
Currently, no third-party contributions are accepted.

## License
The MIT License (MIT) 2023 - [Panos Stergiotis](https://github.com/stergiotis/). See [LICENSE](LICENSE) for the full license text.
2 changes: 1 addition & 1 deletion public/curlier/curlier.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ func (inst *Curlier) Run(reqBody io.Reader) (resp *http.Response, err error) {
bo := inst.bo
bo.Reset()
for IsTransientError(resp.StatusCode) && t < cfg.Retry {
t++
time.Sleep(bo.NextBackOff())
resp, err = inst.client.Do(req)
if err != nil {
Expand All @@ -269,7 +270,6 @@ func (inst *Curlier) Run(reqBody io.Reader) (resp *http.Response, err error) {
err = eh.Errorf("unable to perform http request: %w", err)
return
} else {
t++
return
}
}
Expand Down
2 changes: 1 addition & 1 deletion public/ea/splitread.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"math/rand"
)

// TransferDataWithSplitReadAndWrites copies nBytesToRead from r to dest by randomly using io.Reader and io.ByteReader interface. The number of bytes transferred by each method is rougly balanced.
// TransferDataWithSplitReadAndWrites copies nBytesToRead from r to dest by randomly using io.Reader and io.ByteReader interface. The number of bytes transferred by each method is roughly balanced.
func TransferDataWithSplitReadAndWrites(dest ByteBlockWriter, nBytesToRead int, r ByteReadReader, maxConsecutiveBytesToRead int, ra *rand.Rand) (singleByteReads int, blockReads int, bytesBlockReads int, n int, err error) {
if maxConsecutiveBytesToRead < 2 {
err = eh.Errorf("maxConsecutiveBytesToRead has to be larger or equal to 2")
Expand Down

0 comments on commit 0b07811

Please sign in to comment.