Browse Source

go fmt

pull/1804/head
Chris Lu 4 years ago
parent
commit
a0e84c4fbc
  1. 2
      weed/filesys/wfs.go
  2. 2
      weed/replication/sink/filersink/filer_sink.go
  3. 2
      weed/s3api/s3api_object_handlers.go
  4. 1
      weed/util/bounded_tree/bounded_tree.go

2
weed/filesys/wfs.go

@ -3,8 +3,8 @@ package filesys
import (
"context"
"fmt"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/wdclient"
"math"
"os"

2
weed/replication/sink/filersink/filer_sink.go

@ -25,7 +25,7 @@ type FilerSink struct {
replication string
collection string
ttlSec int32
diskType string
diskType string
dataCenter string
grpcDialOption grpc.DialOption
address string

2
weed/s3api/s3api_object_handlers.go

@ -223,7 +223,7 @@ func (s3a *S3ApiServer) DeleteMultipleObjectsHandler(w http.ResponseWriter, r *h
}
func doDeleteEmptyDirectories(client filer_pb.SeaweedFilerClient, directoriesWithDeletion map[string]int) (newDirectoriesWithDeletion map[string]int){
func doDeleteEmptyDirectories(client filer_pb.SeaweedFilerClient, directoriesWithDeletion map[string]int) (newDirectoriesWithDeletion map[string]int) {
var allDirs []string
for dir, _ := range directoriesWithDeletion {
allDirs = append(allDirs, dir)

1
weed/util/bounded_tree/bounded_tree.go

@ -70,7 +70,6 @@ func (t *BoundedTree) ensureVisited(n *Node, currentPath util.FullPath, componen
} else {
// fmt.Printf("ensure %v\n", currentPath)
children, err := visitFn(currentPath)
if err != nil {
glog.V(0).Infof("failed to visit %s: %v", currentPath, err)

Loading…
Cancel
Save