aboutsummaryrefslogtreecommitdiff
path: root/weed/pb
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-12-19 19:23:27 -0800
committerchrislu <chris.lu@gmail.com>2024-12-19 19:25:06 -0800
commitec155022e7e8d0f30bfcfa169248ec3ecc40e960 (patch)
tree613416a40b45bd67bb9baf87be9843798a487914 /weed/pb
parenta1a76ccb8c3316baf269aa856ba268d53e0943ba (diff)
downloadseaweedfs-ec155022e7e8d0f30bfcfa169248ec3ecc40e960.tar.xz
seaweedfs-ec155022e7e8d0f30bfcfa169248ec3ecc40e960.zip
"golang.org/x/exp/slices" => "slices" and go fmt
Diffstat (limited to 'weed/pb')
-rw-r--r--weed/pb/filer_pb/filer_client_bfs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/pb/filer_pb/filer_client_bfs.go b/weed/pb/filer_pb/filer_client_bfs.go
index 046920940..e43443706 100644
--- a/weed/pb/filer_pb/filer_client_bfs.go
+++ b/weed/pb/filer_pb/filer_client_bfs.go
@@ -69,7 +69,7 @@ func processOneDirectory(filerClient FilerClient, parentPath util.FullPath, queu
}
-func StreamBfs(client SeaweedFilerClient, dir util.FullPath, olderThanTsNs int64, fn func(parentPath util.FullPath, entry *Entry)error) (err error) {
+func StreamBfs(client SeaweedFilerClient, dir util.FullPath, olderThanTsNs int64, fn func(parentPath util.FullPath, entry *Entry) error) (err error) {
glog.V(0).Infof("TraverseBfsMetadata %v if before %v", dir, time.Unix(0, olderThanTsNs))
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
@@ -87,7 +87,7 @@ func StreamBfs(client SeaweedFilerClient, dir util.FullPath, olderThanTsNs int64
}
return fmt.Errorf("traverse bfs metadata: %v", err)
}
- if err := fn(util.FullPath(resp.Directory), resp.Entry); err != nil {
+ if err := fn(util.FullPath(resp.Directory), resp.Entry); err != nil {
return err
}
}