SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
refactoring
Chris Lu62ee484d12c2
diff --git a/weed/command/watch.go b/weed/command/watch.goindex fd7dd6fb22..431a326d70 100644--- a/weed/command/watch.go+++ b/weed/command/watch.go@@ -76,6 +76,10 @@ func runWatch(cmd *Command, args []string) bool {return false}+ eachEntryFunc := func(resp *filer_pb.SubscribeMetadataResponse) {+ fmt.Printf("dir:%s %+v\n", resp.Directory, resp.EventNotification)+ }+watchErr := pb.WithFilerClient(*watchFiler, grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {ctx, cancel := context.WithCancel(context.Background())@@ -101,7 +105,7 @@ func runWatch(cmd *Command, args []string) bool {if !shouldPrint(resp) {continue}- fmt.Printf("dir:%s %+v\n", resp.Directory, resp.EventNotification)+ eachEntryFunc(resp)}})