diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-12 06:44:26 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-12 06:44:26 -0800 |
| commit | 4ce56bac0849a6ecfc76bc26b68f0b99339b5d50 (patch) | |
| tree | 554f708e798eb1face729c92613acd96940d18c7 | |
| parent | 0604afcda795b6a071895ea44f5b22675b578966 (diff) | |
| download | seaweedfs-4ce56bac0849a6ecfc76bc26b68f0b99339b5d50.tar.xz seaweedfs-4ce56bac0849a6ecfc76bc26b68f0b99339b5d50.zip | |
fix format error
| -rw-r--r-- | weed/util/fasthttp_util.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/util/fasthttp_util.go b/weed/util/fasthttp_util.go index 59fde37d0..82575af98 100644 --- a/weed/util/fasthttp_util.go +++ b/weed/util/fasthttp_util.go @@ -63,7 +63,7 @@ func FastGet(url string) ([]byte, bool, error) { if res.StatusCode() >= 400 { retryable := res.StatusCode() >= 500 - return nil, retryable, fmt.Errorf("%s: %s", url, res.StatusCode()) + return nil, retryable, fmt.Errorf("%s: %d", url, res.StatusCode()) } if err != nil { return nil, false, err @@ -96,7 +96,7 @@ func FastReadUrlAsStream(fileUrl string, cipherKey []byte, isContentGzipped bool if res.StatusCode() >= 400 { retryable = res.StatusCode() >= 500 - return retryable, fmt.Errorf("%s: %s", fileUrl, res.StatusCode()) + return retryable, fmt.Errorf("%s: %d", fileUrl, res.StatusCode()) } contentEncoding := res.Header.Peek("Content-Encoding") |
