From 402ab598b63f08bc4950c9f278c86338d0c78643 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 22 Sep 2018 00:12:10 -0700 Subject: [PATCH] go fmt --- weed/command/filer_replication.go | 6 +++--- weed/filesys/file.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/weed/command/filer_replication.go b/weed/command/filer_replication.go index 1f239a981..9f8f4442a 100644 --- a/weed/command/filer_replication.go +++ b/weed/command/filer_replication.go @@ -52,11 +52,11 @@ func runFilerReplicate(cmd *Command, args []string) bool { glog.Errorf("receive %s: %+v", key, err) continue } - if m.OldEntry!=nil&&m.NewEntry==nil{ + if m.OldEntry != nil && m.NewEntry == nil { glog.V(1).Infof("delete: %s", key) - }else if m.OldEntry==nil&&m.NewEntry!=nil{ + } else if m.OldEntry == nil && m.NewEntry != nil { glog.V(1).Infof(" add: %s", key) - }else{ + } else { glog.V(1).Infof("modify: %s", key) } if err = replicator.Replicate(key, m); err != nil { diff --git a/weed/filesys/file.go b/weed/filesys/file.go index 911d678df..236995fa0 100644 --- a/weed/filesys/file.go +++ b/weed/filesys/file.go @@ -101,7 +101,7 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f request := &filer_pb.UpdateEntryRequest{ Directory: file.dir.Path, - Entry: file.entry, + Entry: file.entry, } glog.V(1).Infof("set attr file entry: %v", request)