diff options
| author | chrislu <chris.lu@gmail.com> | 2022-08-17 12:42:03 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-08-17 12:42:03 -0700 |
| commit | 2b580a7566536fb229a50af94b67d9df46724f34 (patch) | |
| tree | 73bd8091568909116fbb83cb1c5400c9ee004333 /weed/command | |
| parent | eaeb141b09326aa7c4d1d1e7b7f27e119d019f9c (diff) | |
| download | seaweedfs-2b580a7566536fb229a50af94b67d9df46724f34.tar.xz seaweedfs-2b580a7566536fb229a50af94b67d9df46724f34.zip | |
also migrate jsonpb
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/filer_meta_tail.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/weed/command/filer_meta_tail.go b/weed/command/filer_meta_tail.go index a433d1b07..58a496ff4 100644 --- a/weed/command/filer_meta_tail.go +++ b/weed/command/filer_meta_tail.go @@ -2,8 +2,8 @@ package command import ( "fmt" + "github.com/seaweedfs/seaweedfs/weed/filer" "github.com/seaweedfs/seaweedfs/weed/pb" - "google.golang.org/protobuf/jsonpb" "os" "path/filepath" "strings" @@ -88,11 +88,8 @@ func runFilerMetaTail(cmd *Command, args []string) bool { return false } - jsonpbMarshaler := jsonpb.Marshaler{ - EmitDefaults: false, - } eachEntryFunc := func(resp *filer_pb.SubscribeMetadataResponse) error { - jsonpbMarshaler.Marshal(os.Stdout, resp) + filer.ProtoToText(os.Stdout, resp) fmt.Fprintln(os.Stdout) return nil } |
