mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 08:36:16 +08:00
refactor all methods strings to const (#5726)
This commit is contained in:

committed by
GitHub

parent
0fdf7eca48
commit
5ffacbb6ea
@@ -95,7 +95,7 @@ func (cm *ChunkManifest) DeleteChunks(masterFn GetMasterFn, usePublicUrl bool, g
|
||||
}
|
||||
|
||||
func readChunkNeedle(fileUrl string, w io.Writer, offset int64, jwt string) (written int64, e error) {
|
||||
req, err := http.NewRequest("GET", fileUrl, nil)
|
||||
req, err := http.NewRequest(http.MethodGet, fileUrl, nil)
|
||||
if err != nil {
|
||||
return written, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user