From 3ec977cd6ccdd91715a07c166b8f2bdf3256ca9f Mon Sep 17 00:00:00 2001 From: wusong <75450248+wusongANKANG@users.noreply.github.com> Date: Tue, 1 Aug 2023 17:34:59 +0800 Subject: [PATCH] minor (#4723) --- weed/shell/command_volume_tier_download.go | 4 ++-- weed/stats/stats.go | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/weed/shell/command_volume_tier_download.go b/weed/shell/command_volume_tier_download.go index 0dc34c071..e60a74735 100644 --- a/weed/shell/command_volume_tier_download.go +++ b/weed/shell/command_volume_tier_download.go @@ -4,9 +4,10 @@ import ( "context" "flag" "fmt" - "github.com/seaweedfs/seaweedfs/weed/pb" "io" + "github.com/seaweedfs/seaweedfs/weed/pb" + "google.golang.org/grpc" "github.com/seaweedfs/seaweedfs/weed/operation" @@ -34,7 +35,6 @@ func (c *commandVolumeTierDownload) Help() string { e.g.: volume.tier.download -volumeId=7 - volume.tier.download -volumeId=7 This command will download the dat file of a volume from a remote tier to a volume server in local cluster. diff --git a/weed/stats/stats.go b/weed/stats/stats.go index 09826152f..6d3d55cc6 100644 --- a/weed/stats/stats.go +++ b/weed/stats/stats.go @@ -100,8 +100,6 @@ func (ss *ServerStats) Start() { ss.ReadRequests.Add(tv) case tv := <-Chan.WriteRequests: ss.WriteRequests.Add(tv) - case tv := <-Chan.ReadRequests: - ss.ReadRequests.Add(tv) case tv := <-Chan.DeleteRequests: ss.DeleteRequests.Add(tv) case tv := <-Chan.BytesIn: