diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2024-07-01 13:00:39 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-01 01:00:39 -0700 |
| commit | 5ffacbb6eacaad6ea9558d18f9c62be2a3c4e18f (patch) | |
| tree | bf5797c6b002d953d03ae68fa37c7c4be7fabc40 /weed/shell/command_fs_merge_volumes.go | |
| parent | 0fdf7eca48892b5c6d12c1c96563755945331f16 (diff) | |
| download | seaweedfs-5ffacbb6eacaad6ea9558d18f9c62be2a3c4e18f.tar.xz seaweedfs-5ffacbb6eacaad6ea9558d18f9c62be2a3c4e18f.zip | |
refactor all methods strings to const (#5726)
Diffstat (limited to 'weed/shell/command_fs_merge_volumes.go')
| -rw-r--r-- | weed/shell/command_fs_merge_volumes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_fs_merge_volumes.go b/weed/shell/command_fs_merge_volumes.go index 4a6048a43..f6d55c616 100644 --- a/weed/shell/command_fs_merge_volumes.go +++ b/weed/shell/command_fs_merge_volumes.go @@ -342,7 +342,7 @@ func moveChunk(chunk *filer_pb.FileChunk, toVolumeId needle.VolumeId, masterClie func readUrl(fileUrl string) (*http.Response, io.ReadCloser, error) { - req, err := http.NewRequest("GET", fileUrl, nil) + req, err := http.NewRequest(http.MethodGet, fileUrl, nil) if err != nil { return nil, nil, err } |
