mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
go fmt
This commit is contained in:
parent
af313dff58
commit
f62c153274
|
@ -68,9 +68,9 @@ func (gw *GatewayOptions) startGateway() {
|
||||||
defaultMux := http.NewServeMux()
|
defaultMux := http.NewServeMux()
|
||||||
|
|
||||||
_, gws_err := weed_server.NewGatewayServer(defaultMux, &weed_server.GatewayOption{
|
_, gws_err := weed_server.NewGatewayServer(defaultMux, &weed_server.GatewayOption{
|
||||||
Masters: strings.Split(*gw.masters, ","),
|
Masters: strings.Split(*gw.masters, ","),
|
||||||
Filers: strings.Split(*gw.filers, ","),
|
Filers: strings.Split(*gw.filers, ","),
|
||||||
MaxMB: *gw.maxMB,
|
MaxMB: *gw.maxMB,
|
||||||
})
|
})
|
||||||
if gws_err != nil {
|
if gws_err != nil {
|
||||||
glog.Fatalf("Gateway startup error: %v", gws_err)
|
glog.Fatalf("Gateway startup error: %v", gws_err)
|
||||||
|
|
|
@ -372,7 +372,6 @@ func (dir *Dir) Remove(ctx context.Context, req *fuse.RemoveRequest) error {
|
||||||
return fuse.EPERM
|
return fuse.EPERM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if !req.Dir {
|
if !req.Dir {
|
||||||
return dir.removeOneFile(req)
|
return dir.removeOneFile(req)
|
||||||
}
|
}
|
||||||
|
|
|
@ -235,7 +235,7 @@ func upload_content(uploadUrl string, fillBufferFunction func(w io.Writer) error
|
||||||
// print("+")
|
// print("+")
|
||||||
resp, post_err := HttpClient.Do(req)
|
resp, post_err := HttpClient.Do(req)
|
||||||
if post_err != nil {
|
if post_err != nil {
|
||||||
if !strings.Contains(post_err.Error(), "connection reset by peer"){
|
if !strings.Contains(post_err.Error(), "connection reset by peer") {
|
||||||
glog.Errorf("upload %s %d bytes to %v: %v", filename, originalDataSize, uploadUrl, post_err)
|
glog.Errorf("upload %s %d bytes to %v: %v", filename, originalDataSize, uploadUrl, post_err)
|
||||||
debug.PrintStack()
|
debug.PrintStack()
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,7 +145,6 @@ func DeleteProxied(url string, jwt string) (body []byte, httpStatus int, err err
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func GetBufferStream(url string, values url.Values, allocatedBytes []byte, eachBuffer func([]byte)) error {
|
func GetBufferStream(url string, values url.Values, allocatedBytes []byte, eachBuffer func([]byte)) error {
|
||||||
r, err := client.PostForm(url, values)
|
r, err := client.PostForm(url, values)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue