diff --git a/weed/s3api/s3api_bucket_handlers.go b/weed/s3api/s3api_bucket_handlers.go index 7de1d5ebb..6f72e045f 100644 --- a/weed/s3api/s3api_bucket_handlers.go +++ b/weed/s3api/s3api_bucket_handlers.go @@ -135,7 +135,7 @@ func (s3a *S3ApiServer) PutBucketHandler(w http.ResponseWriter, r *http.Request) s3err.WriteErrorResponse(w, r, s3err.ErrInternalError) return } - w.Header().Set("Location", "/" + bucket) + w.Header().Set("Location", "/"+bucket) writeSuccessResponseEmpty(w, r) } diff --git a/weed/s3api/s3api_object_multipart_handlers.go b/weed/s3api/s3api_object_multipart_handlers.go index d2fa21c2e..d74867778 100644 --- a/weed/s3api/s3api_object_multipart_handlers.go +++ b/weed/s3api/s3api_object_multipart_handlers.go @@ -1,8 +1,8 @@ package s3api import ( - "encoding/xml" "crypto/sha1" + "encoding/xml" "fmt" "github.com/chrislusf/seaweedfs/weed/glog" xhttp "github.com/chrislusf/seaweedfs/weed/s3api/http" diff --git a/weed/topology/topology.go b/weed/topology/topology.go index aacdfa7d2..6d5b373e9 100644 --- a/weed/topology/topology.go +++ b/weed/topology/topology.go @@ -303,8 +303,8 @@ func (t *Topology) IncrementalSyncDataNodeRegistration(newVolumes, deletedVolume return } -func (t *Topology) DataNodeRegistration(dcName, rackName string ,dn *DataNode){ - if dn.Parent() != nil{ +func (t *Topology) DataNodeRegistration(dcName, rackName string, dn *DataNode) { + if dn.Parent() != nil { return } // registration to topo @@ -312,4 +312,4 @@ func (t *Topology) DataNodeRegistration(dcName, rackName string ,dn *DataNode){ rack := dc.GetOrCreateRack(rackName) rack.LinkChildNode(dn) glog.Infof("[%s] reLink To topo ", dn.Id()) -} \ No newline at end of file +}